aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/rtas_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/rtas_pci.c')
-rw-r--r--arch/powerpc/kernel/rtas_pci.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/rtas_pci.c b/arch/powerpc/kernel/rtas_pci.c
index cda022657324..5a798ac6aecf 100644
--- a/arch/powerpc/kernel/rtas_pci.c
+++ b/arch/powerpc/kernel/rtas_pci.c
@@ -57,7 +57,7 @@ static inline int config_access_valid(struct pci_dn *dn, int where)
57 57
58static int of_device_available(struct device_node * dn) 58static int of_device_available(struct device_node * dn)
59{ 59{
60 char * status; 60 const char *status;
61 61
62 status = get_property(dn, "status", NULL); 62 status = get_property(dn, "status", NULL);
63 63
@@ -178,7 +178,7 @@ struct pci_ops rtas_pci_ops = {
178 178
179int is_python(struct device_node *dev) 179int is_python(struct device_node *dev)
180{ 180{
181 char *model = (char *)get_property(dev, "model", NULL); 181 const char *model = get_property(dev, "model", NULL);
182 182
183 if (model && strstr(model, "Python")) 183 if (model && strstr(model, "Python"))
184 return 1; 184 return 1;
@@ -234,7 +234,7 @@ void __init init_pci_config_tokens (void)
234unsigned long __devinit get_phb_buid (struct device_node *phb) 234unsigned long __devinit get_phb_buid (struct device_node *phb)
235{ 235{
236 int addr_cells; 236 int addr_cells;
237 unsigned int *buid_vals; 237 const unsigned int *buid_vals;
238 unsigned int len; 238 unsigned int len;
239 unsigned long buid; 239 unsigned long buid;
240 240
@@ -247,7 +247,7 @@ unsigned long __devinit get_phb_buid (struct device_node *phb)
247 if (phb->parent->parent) 247 if (phb->parent->parent)
248 return 0; 248 return 0;
249 249
250 buid_vals = (unsigned int *) get_property(phb, "reg", &len); 250 buid_vals = get_property(phb, "reg", &len);
251 if (buid_vals == NULL) 251 if (buid_vals == NULL)
252 return 0; 252 return 0;
253 253
@@ -264,10 +264,10 @@ unsigned long __devinit get_phb_buid (struct device_node *phb)
264static int phb_set_bus_ranges(struct device_node *dev, 264static int phb_set_bus_ranges(struct device_node *dev,
265 struct pci_controller *phb) 265 struct pci_controller *phb)
266{ 266{
267 int *bus_range; 267 const int *bus_range;
268 unsigned int len; 268 unsigned int len;
269 269
270 bus_range = (int *) get_property(dev, "bus-range", &len); 270 bus_range = get_property(dev, "bus-range", &len);
271 if (bus_range == NULL || len < 2 * sizeof(int)) { 271 if (bus_range == NULL || len < 2 * sizeof(int)) {
272 return 1; 272 return 1;
273 } 273 }
@@ -325,15 +325,15 @@ unsigned long __init find_and_init_phbs(void)
325 * in chosen. 325 * in chosen.
326 */ 326 */
327 if (of_chosen) { 327 if (of_chosen) {
328 int *prop; 328 const int *prop;
329 329
330 prop = (int *)get_property(of_chosen, "linux,pci-probe-only", 330 prop = get_property(of_chosen,
331 NULL); 331 "linux,pci-probe-only", NULL);
332 if (prop) 332 if (prop)
333 pci_probe_only = *prop; 333 pci_probe_only = *prop;
334 334
335 prop = (int *)get_property(of_chosen, 335 prop = get_property(of_chosen,
336 "linux,pci-assign-all-buses", NULL); 336 "linux,pci-assign-all-buses", NULL);
337 if (prop) 337 if (prop)
338 pci_assign_all_buses = *prop; 338 pci_assign_all_buses = *prop;
339 } 339 }