aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/address.c
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@canonical.com>2010-10-10 23:24:10 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-10-12 23:58:42 -0400
commita9fadeefdc869ff792591f57a9e33d8790d63292 (patch)
treee4f8d0116de6bd16f29b9a59eb4767f6e161d9ac /drivers/of/address.c
parent52f6537cb2f0b461a9ce3457c01a6cfa2ae0bb22 (diff)
of: use __be32 types for big-endian device tree data
Use the sparse annotations so we can keep track of endianness. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/address.c')
-rw-r--r--drivers/of/address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index fcadb726d4f9..3a1c7e70b192 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -163,7 +163,7 @@ static int of_bus_pci_translate(u32 *addr, u64 offset, int na)
163const u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size, 163const u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size,
164 unsigned int *flags) 164 unsigned int *flags)
165{ 165{
166 const u32 *prop; 166 const __be32 *prop;
167 unsigned int psize; 167 unsigned int psize;
168 struct device_node *parent; 168 struct device_node *parent;
169 struct of_bus *bus; 169 struct of_bus *bus;