Skip to content

Commit

Permalink
powerpc/fsl: fsl_soc: sparse fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim Phillips authored and Kumar Gala committed Feb 12, 2013
1 parent 01673a1 commit 8443cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/fsl_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8443cc1

Please sign in to comment.