diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-02 20:58:52 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:18 -0400 |
commit | 1a38147ed0737a9c01dbf5f2ca47fd2a0aa5cb55 (patch) | |
tree | cd8ace4daea50a2a8c4bc19db156163e9f7aefb3 /arch/powerpc/platforms | |
parent | 9213feea6e197f8507ec855337798cc3388f5570 (diff) |
[POWERPC] Make struct property's value a void *
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/maple/pci.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pci.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/pfunc_core.c | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/maple/pci.c b/arch/powerpc/platforms/maple/pci.c index 73c59904697f..ab5a6f12e1f0 100644 --- a/arch/powerpc/platforms/maple/pci.c +++ b/arch/powerpc/platforms/maple/pci.c | |||
@@ -77,7 +77,7 @@ static void __init fixup_bus_range(struct device_node *bridge) | |||
77 | bridge->full_name); | 77 | bridge->full_name); |
78 | return; | 78 | return; |
79 | } | 79 | } |
80 | bus_range = (int *)prop->value; | 80 | bus_range = prop->value; |
81 | bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]); | 81 | bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]); |
82 | } | 82 | } |
83 | 83 | ||
diff --git a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platforms/powermac/pci.c index 6fbac308ded6..431a685a15dd 100644 --- a/arch/powerpc/platforms/powermac/pci.c +++ b/arch/powerpc/platforms/powermac/pci.c | |||
@@ -100,7 +100,7 @@ static void __init fixup_bus_range(struct device_node *bridge) | |||
100 | if (prop == NULL || prop->length < 2 * sizeof(int)) | 100 | if (prop == NULL || prop->length < 2 * sizeof(int)) |
101 | return; | 101 | return; |
102 | 102 | ||
103 | bus_range = (int *)prop->value; | 103 | bus_range = prop->value; |
104 | bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]); | 104 | bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]); |
105 | } | 105 | } |
106 | 106 | ||
diff --git a/arch/powerpc/platforms/powermac/pfunc_core.c b/arch/powerpc/platforms/powermac/pfunc_core.c index 7651f278615a..a128553b8413 100644 --- a/arch/powerpc/platforms/powermac/pfunc_core.c +++ b/arch/powerpc/platforms/powermac/pfunc_core.c | |||
@@ -692,8 +692,7 @@ static int pmf_add_functions(struct pmf_device *dev, void *driverdata) | |||
692 | name = pp->name + plen; | 692 | name = pp->name + plen; |
693 | if (strlen(name) && pp->length >= 12) | 693 | if (strlen(name) && pp->length >= 12) |
694 | count += pmf_add_function_prop(dev, driverdata, name, | 694 | count += pmf_add_function_prop(dev, driverdata, name, |
695 | (u32 *)pp->value, | 695 | pp->value, pp->length); |
696 | pp->length); | ||
697 | } | 696 | } |
698 | return count; | 697 | return count; |
699 | } | 698 | } |