summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2012-11-30 17:35:02 -0600
committerKumar Gala <galak@kernel.crashing.org>2013-02-12 11:05:20 -0600
commit8443cc142d81b722740a98f42cd4deae826311d0 (patch)
treeb4366d8b4643a6717dead77bd253682eb278b1dc /arch/powerpc/sysdev
parent01673a135eca8c6e984488ba9c29aa0b09601f77 (diff)
downloadop-kernel-dev-8443cc142d81b722740a98f42cd4deae826311d0.zip
op-kernel-dev-8443cc142d81b722740a98f42cd4deae826311d0.tar.gz
powerpc/fsl: fsl_soc: sparse fixes
arch/powerpc/sysdev/fsl_soc.c:70:67: warning: incorrect type in argument 2 (different base types) arch/powerpc/sysdev/fsl_soc.c:70:67: expected restricted __be32 const [usertype] *addr arch/powerpc/sysdev/fsl_soc.c:70:67: got unsigned int const [usertype] * Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/fsl_soc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index 97118dc..228cf91 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -58,10 +58,10 @@ phys_addr_t get_immrbase(void)
if (soc) {
int size;
u32 naddr;
- const u32 *prop = of_get_property(soc, "#address-cells", &size);
+ const __be32 *prop = of_get_property(soc, "#address-cells", &size);
if (prop && size == 4)
- naddr = *prop;
+ naddr = be32_to_cpup(prop);
else
naddr = 2;
OpenPOWER on IntegriCloud