diff options
Diffstat (limited to 'arch/sparc64/kernel/pci.c')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index f97ddeb105ac..9472580a4319 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
@@ -47,12 +47,6 @@ struct pci_controller_info *pci_controller_root = NULL; | |||
47 | /* Each PCI controller found gets a unique index. */ | 47 | /* Each PCI controller found gets a unique index. */ |
48 | int pci_num_controllers = 0; | 48 | int pci_num_controllers = 0; |
49 | 49 | ||
50 | /* At boot time the user can give the kernel a command | ||
51 | * line option which controls if and how PCI devices | ||
52 | * are reordered at PCI bus probing time. | ||
53 | */ | ||
54 | int pci_device_reorder = 0; | ||
55 | |||
56 | volatile int pci_poke_in_progress; | 50 | volatile int pci_poke_in_progress; |
57 | volatile int pci_poke_cpu = -1; | 51 | volatile int pci_poke_cpu = -1; |
58 | volatile int pci_poke_faulted; | 52 | volatile int pci_poke_faulted; |
@@ -316,27 +310,6 @@ static void __init pci_scan_each_controller_bus(void) | |||
316 | p->scan_bus(p); | 310 | p->scan_bus(p); |
317 | } | 311 | } |
318 | 312 | ||
319 | /* Reorder the pci_dev chain, so that onboard devices come first | ||
320 | * and then come the pluggable cards. | ||
321 | */ | ||
322 | static void __init pci_reorder_devs(void) | ||
323 | { | ||
324 | struct list_head *pci_onboard = &pci_devices; | ||
325 | struct list_head *walk = pci_onboard->next; | ||
326 | |||
327 | while (walk != pci_onboard) { | ||
328 | struct pci_dev *pdev = pci_dev_g(walk); | ||
329 | struct list_head *walk_next = walk->next; | ||
330 | |||
331 | if (pdev->irq && (__irq_ino(pdev->irq) & 0x20)) { | ||
332 | list_del(walk); | ||
333 | list_add(walk, pci_onboard); | ||
334 | } | ||
335 | |||
336 | walk = walk_next; | ||
337 | } | ||
338 | } | ||
339 | |||
340 | extern void clock_probe(void); | 313 | extern void clock_probe(void); |
341 | extern void power_init(void); | 314 | extern void power_init(void); |
342 | 315 | ||
@@ -348,9 +321,6 @@ static int __init pcibios_init(void) | |||
348 | 321 | ||
349 | pci_scan_each_controller_bus(); | 322 | pci_scan_each_controller_bus(); |
350 | 323 | ||
351 | if (pci_device_reorder) | ||
352 | pci_reorder_devs(); | ||
353 | |||
354 | isa_init(); | 324 | isa_init(); |
355 | ebus_init(); | 325 | ebus_init(); |
356 | clock_probe(); | 326 | clock_probe(); |
@@ -441,14 +411,6 @@ EXPORT_SYMBOL(pcibios_bus_to_resource); | |||
441 | 411 | ||
442 | char * __init pcibios_setup(char *str) | 412 | char * __init pcibios_setup(char *str) |
443 | { | 413 | { |
444 | if (!strcmp(str, "onboardfirst")) { | ||
445 | pci_device_reorder = 1; | ||
446 | return NULL; | ||
447 | } | ||
448 | if (!strcmp(str, "noreorder")) { | ||
449 | pci_device_reorder = 0; | ||
450 | return NULL; | ||
451 | } | ||
452 | return str; | 414 | return str; |
453 | } | 415 | } |
454 | 416 | ||