aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/tsi108_pci.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2006-09-23 08:34:10 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2006-09-23 08:34:10 -0400
commit919251758195919ae3568021bc221e4f8c4b20eb (patch)
tree81137a037ff8e6c91cc8de72d568275605c653c5 /arch/powerpc/sysdev/tsi108_pci.c
parentc394f1eafef61c6666f5876afde6110a276c4c9f (diff)
parent3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a (diff)
Merge branch 'mainline' into upstream-linus
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 2ab06ed3ae73..c28f69bef8e2 100644
--- a/arch/powerpc/sysdev/tsi108_pci.c
+++ b/arch/powerpc/sysdev/tsi108_pci.c
@@ -194,7 +194,7 @@ int __init tsi108_setup_pci(struct device_node *dev)
194 int len; 194 int len;
195 struct pci_controller *hose; 195 struct pci_controller *hose;
196 struct resource rsrc; 196 struct resource rsrc;
197 int *bus_range; 197 const int *bus_range;
198 int primary = 0, has_address = 0; 198 int primary = 0, has_address = 0;
199 199
200 /* PCI Config mapping */ 200 /* PCI Config mapping */
@@ -207,7 +207,7 @@ int __init tsi108_setup_pci(struct device_node *dev)
207 has_address = (of_address_to_resource(dev, 0, &rsrc) == 0); 207 has_address = (of_address_to_resource(dev, 0, &rsrc) == 0);
208 208
209 /* Get bus range if any */ 209 /* Get bus range if any */
210 bus_range = (int *)get_property(dev, "bus-range", &len); 210 bus_range = get_property(dev, "bus-range", &len);
211 if (bus_range == NULL || len < 2 * sizeof(int)) { 211 if (bus_range == NULL || len < 2 * sizeof(int)) {
212 printk(KERN_WARNING "Can't get bus-range for %s, assume" 212 printk(KERN_WARNING "Can't get bus-range for %s, assume"
213 " bus 0\n", dev->full_name); 213 " bus 0\n", dev->full_name);