diff options
author | Jeremy Kerr <jeremy.kerr@canonical.com> | 2010-10-10 21:24:10 -0600 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-10-12 21:58:42 -0600 |
commit | a9fadeefdc869ff792591f57a9e33d8790d63292 (patch) | |
tree | e4f8d0116de6bd16f29b9a59eb4767f6e161d9ac /drivers/of | |
parent | 52f6537cb2f0b461a9ce3457c01a6cfa2ae0bb22 (diff) | |
download | linux-3.10-a9fadeefdc869ff792591f57a9e33d8790d63292.tar.gz linux-3.10-a9fadeefdc869ff792591f57a9e33d8790d63292.tar.bz2 linux-3.10-a9fadeefdc869ff792591f57a9e33d8790d63292.zip |
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')
-rw-r--r-- | drivers/of/address.c | 2 | ||||
-rw-r--r-- | drivers/of/base.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index fcadb726d4f..3a1c7e70b19 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) const u32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size, unsigned int *flags) { - const u32 *prop; + const __be32 *prop; unsigned int psize; struct device_node *parent; struct of_bus *bus; diff --git a/drivers/of/base.c b/drivers/of/base.c index aa805250de7..710b53bfac6 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -33,7 +33,7 @@ DEFINE_RWLOCK(devtree_lock); int of_n_addr_cells(struct device_node *np) { - const int *ip; + const __be32 *ip; do { if (np->parent) @@ -49,7 +49,7 @@ EXPORT_SYMBOL(of_n_addr_cells); int of_n_size_cells(struct device_node *np) { - const int *ip; + const __be32 *ip; do { if (np->parent) |