aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);