powerpc/fsl: fsl_soc: sparse fixes
authorKim Phillips <kim.phillips@freescale.com>
Fri, 30 Nov 2012 23:35:02 +0000 (17:35 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 12 Feb 2013 17:05:20 +0000 (11:05 -0600)
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>
arch/powerpc/sysdev/fsl_soc.c

index 97118dc3d2851b7a33ce46a4aec162ff1cc4bba5..228cf91b91c14bc4e865e89371595363aa7858cc 100644 (file)
@@ -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;