diff options
author | Alistair Popple <alistair@popple.id.au> | 2013-08-06 12:01:43 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 01:33:32 -0400 |
commit | 4a396dc6faa1d8c5b2a079d2018791934e7492b1 (patch) | |
tree | 27ebf96399474a0a46a5c2c1d8635bc28e53d439 /arch/powerpc/kernel/legacy_serial.c | |
parent | c6296b962702d73413a66a544490c275bc0f4300 (diff) |
powerpc: Little endian fixes for legacy_serial.c
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/legacy_serial.c')
-rw-r--r-- | arch/powerpc/kernel/legacy_serial.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index c9c469f3c5c3..22e88dd2f34a 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c | |||
@@ -152,7 +152,7 @@ static int __init add_legacy_soc_port(struct device_node *np, | |||
152 | struct device_node *soc_dev) | 152 | struct device_node *soc_dev) |
153 | { | 153 | { |
154 | u64 addr; | 154 | u64 addr; |
155 | const u32 *addrp; | 155 | const __be32 *addrp; |
156 | upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ | 156 | upf_t flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ |
157 | | UPF_FIXED_PORT; | 157 | | UPF_FIXED_PORT; |
158 | struct device_node *tsi = of_get_parent(np); | 158 | struct device_node *tsi = of_get_parent(np); |
@@ -242,7 +242,7 @@ static int __init add_legacy_pci_port(struct device_node *np, | |||
242 | struct device_node *pci_dev) | 242 | struct device_node *pci_dev) |
243 | { | 243 | { |
244 | u64 addr, base; | 244 | u64 addr, base; |
245 | const u32 *addrp; | 245 | const __be32 *addrp; |
246 | unsigned int flags; | 246 | unsigned int flags; |
247 | int iotype, index = -1, lindex = 0; | 247 | int iotype, index = -1, lindex = 0; |
248 | 248 | ||
@@ -275,7 +275,7 @@ static int __init add_legacy_pci_port(struct device_node *np, | |||
275 | if (iotype == UPIO_MEM) | 275 | if (iotype == UPIO_MEM) |
276 | base = addr; | 276 | base = addr; |
277 | else | 277 | else |
278 | base = addrp[2]; | 278 | base = of_read_number(&addrp[2], 1); |
279 | 279 | ||
280 | /* Try to guess an index... If we have subdevices of the pci dev, | 280 | /* Try to guess an index... If we have subdevices of the pci dev, |
281 | * we get to their "reg" property | 281 | * we get to their "reg" property |