mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
01673a135e
commit
8443cc142d
|
@ -58,10 +58,10 @@ phys_addr_t get_immrbase(void)
|
||||||
if (soc) {
|
if (soc) {
|
||||||
int size;
|
int size;
|
||||||
u32 naddr;
|
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)
|
if (prop && size == 4)
|
||||||
naddr = *prop;
|
naddr = be32_to_cpup(prop);
|
||||||
else
|
else
|
||||||
naddr = 2;
|
naddr = 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue