aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/tsi108_pci.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2006-07-12 01:41:52 -0400
committerPaul Mackerras <paulus@samba.org>2006-07-31 01:55:06 -0400
commit88c805940bb9a1478f06ed6dd5d6f660bdc38eaa (patch)
tree4eefeb6e7555e0eb226647f1fa17bc237aee8c7f /arch/powerpc/sysdev/tsi108_pci.c
parentaf5f92d881d783b47d1f993ddffa2bce8b2993fe (diff)
[POWERPC] tsi108: Constify & voidify get_property()
Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. tsi108 driver changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev/tsi108_pci.c')
-rw-r--r--arch/powerpc/sysdev/tsi108_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c
index 3265d54c82ed..f6c492f8ab95 100644
--- a/arch/powerpc/sysdev/tsi108_pci.c
+++ b/arch/powerpc/sysdev/tsi108_pci.c
@@ -195,7 +195,7 @@ int __init tsi108_setup_pci(struct device_node *dev)
195 int len; 195 int len;
196 struct pci_controller *hose; 196 struct pci_controller *hose;
197 struct resource rsrc; 197 struct resource rsrc;
198 int *bus_range; 198 const int *bus_range;
199 int primary = 0, has_address = 0; 199 int primary = 0, has_address = 0;
200 200
201 /* PCI Config mapping */ 201 /* PCI Config mapping */
@@ -208,7 +208,7 @@ int __init tsi108_setup_pci(struct device_node *dev)
208 has_address = (of_address_to_resource(dev, 0, &rsrc) == 0); 208 has_address = (of_address_to_resource(dev, 0, &rsrc) == 0);
209 209
210 /* Get bus range if any */ 210 /* Get bus range if any */
211 bus_range = (int *)get_property(dev, "bus-range", &len); 211 bus_range = get_property(dev, "bus-range", &len);
212 if (bus_range == NULL || len < 2 * sizeof(int)) { 212 if (bus_range == NULL || len < 2 * sizeof(int)) {
213 printk(KERN_WARNING "Can't get bus-range for %s, assume" 213 printk(KERN_WARNING "Can't get bus-range for %s, assume"
214 " bus 0\n", dev->full_name); 214 " bus 0\n", dev->full_name);