projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a489043
)
powerpc/kernel: Fix endian issue in rtas_pci
author
Cedric Le Goater
<
[email protected]
>
Mon, 23 Sep 2013 12:17:54 +0000
(14:17 +0200)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Fri, 11 Oct 2013 05:50:22 +0000
(16:50 +1100)
Signed-off-by: Cédric Le Goater <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
arch/powerpc/kernel/rtas_pci.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/rtas_pci.c
b/arch/powerpc/kernel/rtas_pci.c
index 6e7b7cdeec6541135dad27df9f23bf64ac16395b..7d4c7172f38ed43d85873c23f5b1e63e733ea093 100644
(file)
--- a/
arch/powerpc/kernel/rtas_pci.c
+++ b/
arch/powerpc/kernel/rtas_pci.c
@@
-223,7
+223,7
@@
unsigned long get_phb_buid(struct device_node *phb)
static int phb_set_bus_ranges(struct device_node *dev,
struct pci_controller *phb)
{
- const
int
*bus_range;
+ const
__be32
*bus_range;
unsigned int len;
bus_range = of_get_property(dev, "bus-range", &len);
@@
-231,8
+231,8
@@
static int phb_set_bus_ranges(struct device_node *dev,
return 1;
}
- phb->first_busno =
bus_range[0]
;
- phb->last_busno =
bus_range[1]
;
+ phb->first_busno =
be32_to_cpu(bus_range[0])
;
+ phb->last_busno =
be32_to_cpu(bus_range[1])
;
return 0;
}