mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
Fix compiler warning in fdt_support.c
Fix compiler warning fdt_support.c: In function 'of_bus_default_count_cells': fdt_support.c:957: warning: passing argument 1 of '__swab32p' discards qualifiers from pointer target type fdt_support.c:965: warning: passing argument 1 of '__swab32p' discards qualifiers from pointer target type be32_to_cpup() expects an 'u32 *' while prop is 'const u32 *'. Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
30f305c975
commit
71ae5f7a3f
@@ -954,7 +954,7 @@ static void of_bus_default_count_cells(void *blob, int parentoffset,
|
|||||||
if (addrc) {
|
if (addrc) {
|
||||||
prop = fdt_getprop(blob, parentoffset, "#address-cells", NULL);
|
prop = fdt_getprop(blob, parentoffset, "#address-cells", NULL);
|
||||||
if (prop)
|
if (prop)
|
||||||
*addrc = be32_to_cpup(prop);
|
*addrc = be32_to_cpup((u32 *)prop);
|
||||||
else
|
else
|
||||||
*addrc = 2;
|
*addrc = 2;
|
||||||
}
|
}
|
||||||
@@ -962,7 +962,7 @@ static void of_bus_default_count_cells(void *blob, int parentoffset,
|
|||||||
if (sizec) {
|
if (sizec) {
|
||||||
prop = fdt_getprop(blob, parentoffset, "#size-cells", NULL);
|
prop = fdt_getprop(blob, parentoffset, "#size-cells", NULL);
|
||||||
if (prop)
|
if (prop)
|
||||||
*sizec = be32_to_cpup(prop);
|
*sizec = be32_to_cpup((u32 *)prop);
|
||||||
else
|
else
|
||||||
*sizec = 1;
|
*sizec = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user