summaryrefslogtreecommitdiffstats
path: root/sys/arch/armv7/imx/imxuart.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2016-07-26 22:10:10 +0000
committerpatrick <patrick@openbsd.org>2016-07-26 22:10:10 +0000
commitb7952965205f031520bc848f33b525dc9cde2cfc (patch)
treeac3cd3b01e28f7207af3755dbd0d70202e2153ec /sys/arch/armv7/imx/imxuart.c
parentWrap fpgetround() so internal calls to it (seen on arm, powerpc, and sh) (diff)
downloadwireguard-openbsd-b7952965205f031520bc848f33b525dc9cde2cfc.tar.xz
wireguard-openbsd-b7952965205f031520bc848f33b525dc9cde2cfc.zip
Rename struct fdt_memory to fdt_reg to match the member name
used in the fdt attach args and the device tree. ok kettenis@
Diffstat (limited to 'sys/arch/armv7/imx/imxuart.c')
-rw-r--r--sys/arch/armv7/imx/imxuart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/armv7/imx/imxuart.c b/sys/arch/armv7/imx/imxuart.c
index e9b89d8a33a..4376be6570e 100644
--- a/sys/arch/armv7/imx/imxuart.c
+++ b/sys/arch/armv7/imx/imxuart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxuart.c,v 1.8 2016/07/23 15:02:08 patrick Exp $ */
+/* $OpenBSD: imxuart.c,v 1.9 2016/07/26 22:10:10 patrick Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
*
@@ -138,15 +138,15 @@ struct cdevsw imxuartdev =
void
imxuart_init_cons(void)
{
- struct fdt_memory mem;
+ struct fdt_reg reg;
void *node;
if ((node = fdt_find_cons("fsl,imx21-uart")) == NULL)
return;
- if (fdt_get_memory_address(node, 0, &mem))
+ if (fdt_get_reg(node, 0, &reg))
return;
- imxuartcnattach(&armv7_bs_tag, mem.addr, comcnspeed, comcnmode);
+ imxuartcnattach(&armv7_bs_tag, reg.addr, comcnspeed, comcnmode);
}
int