diff options
-rw-r--r-- | arch/alpha/kernel/pci.c | 6 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/pci/bios.c | 5 | ||||
-rw-r--r-- | arch/ia64/pci/pci.c | 9 | ||||
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 5 | ||||
-rw-r--r-- | arch/mips/pci/pci.c | 4 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/ht.c | 11 | ||||
-rw-r--r-- | arch/mips/txx9/generic/pci.c | 4 | ||||
-rw-r--r-- | arch/parisc/kernel/pci.c | 5 | ||||
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 5 | ||||
-rw-r--r-- | arch/sh/drivers/pci/fixups-sdk7786.c | 4 | ||||
-rw-r--r-- | arch/sh/drivers/pci/pci.c | 5 | ||||
-rw-r--r-- | arch/sparc/kernel/leon_pci.c | 8 | ||||
-rw-r--r-- | arch/sparc/kernel/pci.c | 5 | ||||
-rw-r--r-- | arch/sparc/kernel/pcic.c | 8 | ||||
-rw-r--r-- | arch/tile/kernel/pci.c | 10 | ||||
-rw-r--r-- | arch/unicore32/kernel/pci.c | 2 | ||||
-rw-r--r-- | arch/x86/pci/common.c | 2 | ||||
-rw-r--r-- | arch/xtensa/kernel/pci.c | 6 | ||||
-rw-r--r-- | drivers/pci/pci.c | 12 | ||||
-rw-r--r-- | include/linux/pci.h | 1 |
20 files changed, 21 insertions, 96 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 71efc1a5de7e..9816d5a4d176 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c | |||
@@ -195,12 +195,6 @@ pcibios_init(void) | |||
195 | 195 | ||
196 | subsys_initcall(pcibios_init); | 196 | subsys_initcall(pcibios_init); |
197 | 197 | ||
198 | char * __devinit | ||
199 | pcibios_setup(char *str) | ||
200 | { | ||
201 | return str; | ||
202 | } | ||
203 | |||
204 | #ifdef ALPHA_RESTORE_SRM_SETUP | 198 | #ifdef ALPHA_RESTORE_SRM_SETUP |
205 | static struct pdev_srm_saved_conf *srm_saved_configs; | 199 | static struct pdev_srm_saved_conf *srm_saved_configs; |
206 | 200 | ||
diff --git a/arch/cris/arch-v32/drivers/pci/bios.c b/arch/cris/arch-v32/drivers/pci/bios.c index bc0cfdad1cbc..5b1ee82f63c5 100644 --- a/arch/cris/arch-v32/drivers/pci/bios.c +++ b/arch/cris/arch-v32/drivers/pci/bios.c | |||
@@ -6,11 +6,6 @@ void __devinit pcibios_fixup_bus(struct pci_bus *b) | |||
6 | { | 6 | { |
7 | } | 7 | } |
8 | 8 | ||
9 | char * __devinit pcibios_setup(char *str) | ||
10 | { | ||
11 | return NULL; | ||
12 | } | ||
13 | |||
14 | void pcibios_set_master(struct pci_dev *dev) | 9 | void pcibios_set_master(struct pci_dev *dev) |
15 | { | 10 | { |
16 | u8 lat; | 11 | u8 lat; |
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index d173a88d744a..81acc7a57f3e 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
@@ -498,15 +498,6 @@ pcibios_align_resource (void *data, const struct resource *res, | |||
498 | return res->start; | 498 | return res->start; |
499 | } | 499 | } |
500 | 500 | ||
501 | /* | ||
502 | * PCI BIOS setup, always defaults to SAL interface | ||
503 | */ | ||
504 | char * __init | ||
505 | pcibios_setup (char *str) | ||
506 | { | ||
507 | return str; | ||
508 | } | ||
509 | |||
510 | int | 501 | int |
511 | pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma, | 502 | pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma, |
512 | enum pci_mmap_state mmap_state, int write_combine) | 503 | enum pci_mmap_state mmap_state, int write_combine) |
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 9b32483cd0c0..bd61512a1be4 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -192,11 +192,6 @@ void pcibios_set_master(struct pci_dev *dev) | |||
192 | /* No special bus mastering setup handling */ | 192 | /* No special bus mastering setup handling */ |
193 | } | 193 | } |
194 | 194 | ||
195 | char __devinit *pcibios_setup(char *str) | ||
196 | { | ||
197 | return str; | ||
198 | } | ||
199 | |||
200 | /* | 195 | /* |
201 | * Reads the interrupt pin to determine if interrupt is use by card. | 196 | * Reads the interrupt pin to determine if interrupt is use by card. |
202 | * If the interrupt is used, then gets the interrupt line from the | 197 | * If the interrupt is used, then gets the interrupt line from the |
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 0a9bf778edb5..690356808f8a 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -348,9 +348,9 @@ int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | |||
348 | vma->vm_end - vma->vm_start, vma->vm_page_prot); | 348 | vma->vm_end - vma->vm_start, vma->vm_page_prot); |
349 | } | 349 | } |
350 | 350 | ||
351 | char * (*pcibios_plat_setup)(char *str) __devinitdata; | 351 | char * (*pcibios_plat_setup)(char *str) __initdata; |
352 | 352 | ||
353 | char *__devinit pcibios_setup(char *str) | 353 | char *__init pcibios_setup(char *str) |
354 | { | 354 | { |
355 | if (pcibios_plat_setup) | 355 | if (pcibios_plat_setup) |
356 | return pcibios_plat_setup(str); | 356 | return pcibios_plat_setup(str); |
diff --git a/arch/mips/pmc-sierra/yosemite/ht.c b/arch/mips/pmc-sierra/yosemite/ht.c index 63be40e470db..14dc9c8fff0e 100644 --- a/arch/mips/pmc-sierra/yosemite/ht.c +++ b/arch/mips/pmc-sierra/yosemite/ht.c | |||
@@ -395,17 +395,6 @@ void __init pcibios_init(void) | |||
395 | pci_scan_bus(3, &titan_pci_ops, NULL); | 395 | pci_scan_bus(3, &titan_pci_ops, NULL); |
396 | } | 396 | } |
397 | 397 | ||
398 | /* | ||
399 | * for parsing "pci=" kernel boot arguments. | ||
400 | */ | ||
401 | char *pcibios_setup(char *str) | ||
402 | { | ||
403 | printk(KERN_INFO "rr: pcibios_setup\n"); | ||
404 | /* Nothing to do for now. */ | ||
405 | |||
406 | return str; | ||
407 | } | ||
408 | |||
409 | unsigned __init int pcibios_assign_all_busses(void) | 398 | unsigned __init int pcibios_assign_all_busses(void) |
410 | { | 399 | { |
411 | /* We want to use the PCI bus detection done by PMON */ | 400 | /* We want to use the PCI bus detection done by PMON */ |
diff --git a/arch/mips/txx9/generic/pci.c b/arch/mips/txx9/generic/pci.c index 682efb0c108d..f028e3dc25fb 100644 --- a/arch/mips/txx9/generic/pci.c +++ b/arch/mips/txx9/generic/pci.c | |||
@@ -398,9 +398,9 @@ int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | |||
398 | return txx9_board_vec->pci_map_irq(dev, slot, pin); | 398 | return txx9_board_vec->pci_map_irq(dev, slot, pin); |
399 | } | 399 | } |
400 | 400 | ||
401 | char * (*txx9_board_pcibios_setup)(char *str) __devinitdata; | 401 | char * (*txx9_board_pcibios_setup)(char *str) __initdata; |
402 | 402 | ||
403 | char *__devinit txx9_pcibios_setup(char *str) | 403 | char *__init txx9_pcibios_setup(char *str) |
404 | { | 404 | { |
405 | if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str)) | 405 | if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str)) |
406 | return NULL; | 406 | return NULL; |
diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c index 24644aca10cb..60309051875e 100644 --- a/arch/parisc/kernel/pci.c +++ b/arch/parisc/kernel/pci.c | |||
@@ -139,11 +139,6 @@ void pcibios_fixup_bus(struct pci_bus *bus) | |||
139 | } | 139 | } |
140 | 140 | ||
141 | 141 | ||
142 | char *pcibios_setup(char *str) | ||
143 | { | ||
144 | return str; | ||
145 | } | ||
146 | |||
147 | /* | 142 | /* |
148 | * Called by pci_set_master() - a driver interface. | 143 | * Called by pci_set_master() - a driver interface. |
149 | * | 144 | * |
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 7320f3685523..cf40f2c2c08c 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -200,11 +200,6 @@ int pcibios_add_platform_entries(struct pci_dev *pdev) | |||
200 | return device_create_file(&pdev->dev, &dev_attr_devspec); | 200 | return device_create_file(&pdev->dev, &dev_attr_devspec); |
201 | } | 201 | } |
202 | 202 | ||
203 | char __devinit *pcibios_setup(char *str) | ||
204 | { | ||
205 | return str; | ||
206 | } | ||
207 | |||
208 | /* | 203 | /* |
209 | * Reads the interrupt pin to determine if interrupt is use by card. | 204 | * Reads the interrupt pin to determine if interrupt is use by card. |
210 | * If the interrupt is used, then gets the interrupt line from the | 205 | * If the interrupt is used, then gets the interrupt line from the |
diff --git a/arch/sh/drivers/pci/fixups-sdk7786.c b/arch/sh/drivers/pci/fixups-sdk7786.c index 0e18ee332553..36eb6fc3c18a 100644 --- a/arch/sh/drivers/pci/fixups-sdk7786.c +++ b/arch/sh/drivers/pci/fixups-sdk7786.c | |||
@@ -23,9 +23,9 @@ | |||
23 | * Misconfigurations can be detected through the FPGA via the slot | 23 | * Misconfigurations can be detected through the FPGA via the slot |
24 | * resistors to determine card presence. Hotplug remains unsupported. | 24 | * resistors to determine card presence. Hotplug remains unsupported. |
25 | */ | 25 | */ |
26 | static unsigned int slot4en __devinitdata; | 26 | static unsigned int slot4en __initdata; |
27 | 27 | ||
28 | char *__devinit pcibios_setup(char *str) | 28 | char *__init pcibios_setup(char *str) |
29 | { | 29 | { |
30 | if (strcmp(str, "slot4en") == 0) { | 30 | if (strcmp(str, "slot4en") == 0) { |
31 | slot4en = 1; | 31 | slot4en = 1; |
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index 43068dcb451c..40db2d0aef3f 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c | |||
@@ -197,11 +197,6 @@ void __init pcibios_update_irq(struct pci_dev *dev, int irq) | |||
197 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); | 197 | pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); |
198 | } | 198 | } |
199 | 199 | ||
200 | char * __devinit __weak pcibios_setup(char *str) | ||
201 | { | ||
202 | return str; | ||
203 | } | ||
204 | |||
205 | static void __init | 200 | static void __init |
206 | pcibios_bus_report_status_early(struct pci_channel *hose, | 201 | pcibios_bus_report_status_early(struct pci_channel *hose, |
207 | int top_bus, int current_bus, | 202 | int top_bus, int current_bus, |
diff --git a/arch/sparc/kernel/leon_pci.c b/arch/sparc/kernel/leon_pci.c index 19f56058742b..21dcda75a520 100644 --- a/arch/sparc/kernel/leon_pci.c +++ b/arch/sparc/kernel/leon_pci.c | |||
@@ -91,14 +91,6 @@ void __devinit pcibios_fixup_bus(struct pci_bus *pbus) | |||
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||
94 | /* | ||
95 | * Other archs parse arguments here. | ||
96 | */ | ||
97 | char * __devinit pcibios_setup(char *str) | ||
98 | { | ||
99 | return str; | ||
100 | } | ||
101 | |||
102 | resource_size_t pcibios_align_resource(void *data, const struct resource *res, | 94 | resource_size_t pcibios_align_resource(void *data, const struct resource *res, |
103 | resource_size_t size, resource_size_t align) | 95 | resource_size_t size, resource_size_t align) |
104 | { | 96 | { |
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 4f92a9aba358..52ee0c7b2521 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -749,11 +749,6 @@ int pcibios_enable_device(struct pci_dev *dev, int mask) | |||
749 | return 0; | 749 | return 0; |
750 | } | 750 | } |
751 | 751 | ||
752 | char * __devinit pcibios_setup(char *str) | ||
753 | { | ||
754 | return str; | ||
755 | } | ||
756 | |||
757 | /* Platform support for /proc/bus/pci/X/Y mmap()s. */ | 752 | /* Platform support for /proc/bus/pci/X/Y mmap()s. */ |
758 | 753 | ||
759 | /* If the user uses a host-bridge as the PCI device, he may use | 754 | /* If the user uses a host-bridge as the PCI device, he may use |
diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c index 46ba84998f16..521fdf1b20e5 100644 --- a/arch/sparc/kernel/pcic.c +++ b/arch/sparc/kernel/pcic.c | |||
@@ -767,14 +767,6 @@ static void watchdog_reset() { | |||
767 | } | 767 | } |
768 | #endif | 768 | #endif |
769 | 769 | ||
770 | /* | ||
771 | * Other archs parse arguments here. | ||
772 | */ | ||
773 | char * __devinit pcibios_setup(char *str) | ||
774 | { | ||
775 | return str; | ||
776 | } | ||
777 | |||
778 | resource_size_t pcibios_align_resource(void *data, const struct resource *res, | 770 | resource_size_t pcibios_align_resource(void *data, const struct resource *res, |
779 | resource_size_t size, resource_size_t align) | 771 | resource_size_t size, resource_size_t align) |
780 | { | 772 | { |
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index 87422ed7b834..0fdd99d0d8b7 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c | |||
@@ -404,16 +404,6 @@ void pcibios_set_master(struct pci_dev *dev) | |||
404 | } | 404 | } |
405 | 405 | ||
406 | /* | 406 | /* |
407 | * This can be called from the generic PCI layer, but doesn't need to | ||
408 | * do anything. | ||
409 | */ | ||
410 | char __devinit *pcibios_setup(char *str) | ||
411 | { | ||
412 | /* Nothing needs to be done. */ | ||
413 | return str; | ||
414 | } | ||
415 | |||
416 | /* | ||
417 | * This is called from the generic Linux layer. | 407 | * This is called from the generic Linux layer. |
418 | */ | 408 | */ |
419 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) | 409 | void __devinit pcibios_update_irq(struct pci_dev *dev, int irq) |
diff --git a/arch/unicore32/kernel/pci.c b/arch/unicore32/kernel/pci.c index 2fc2b1ba825e..46cb6c9de6c9 100644 --- a/arch/unicore32/kernel/pci.c +++ b/arch/unicore32/kernel/pci.c | |||
@@ -296,7 +296,7 @@ static int __init pci_common_init(void) | |||
296 | } | 296 | } |
297 | subsys_initcall(pci_common_init); | 297 | subsys_initcall(pci_common_init); |
298 | 298 | ||
299 | char * __devinit pcibios_setup(char *str) | 299 | char * __init pcibios_setup(char *str) |
300 | { | 300 | { |
301 | if (!strcmp(str, "debug")) { | 301 | if (!strcmp(str, "debug")) { |
302 | debug_pci = 1; | 302 | debug_pci = 1; |
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 0ad990a20d4a..720e973fc34a 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -494,7 +494,7 @@ int __init pcibios_init(void) | |||
494 | return 0; | 494 | return 0; |
495 | } | 495 | } |
496 | 496 | ||
497 | char * __devinit pcibios_setup(char *str) | 497 | char * __init pcibios_setup(char *str) |
498 | { | 498 | { |
499 | if (!strcmp(str, "off")) { | 499 | if (!strcmp(str, "off")) { |
500 | pci_probe = 0; | 500 | pci_probe = 0; |
diff --git a/arch/xtensa/kernel/pci.c b/arch/xtensa/kernel/pci.c index 9c57c1e6870c..69759e9cb3ea 100644 --- a/arch/xtensa/kernel/pci.c +++ b/arch/xtensa/kernel/pci.c | |||
@@ -46,7 +46,6 @@ | |||
46 | * pcibios_fixups | 46 | * pcibios_fixups |
47 | * pcibios_align_resource | 47 | * pcibios_align_resource |
48 | * pcibios_fixup_bus | 48 | * pcibios_fixup_bus |
49 | * pcibios_setup | ||
50 | * pci_bus_add_device | 49 | * pci_bus_add_device |
51 | * pci_mmap_page_range | 50 | * pci_mmap_page_range |
52 | */ | 51 | */ |
@@ -206,11 +205,6 @@ void __init pcibios_fixup_bus(struct pci_bus *bus) | |||
206 | } | 205 | } |
207 | } | 206 | } |
208 | 207 | ||
209 | char __init *pcibios_setup(char *str) | ||
210 | { | ||
211 | return str; | ||
212 | } | ||
213 | |||
214 | void pcibios_set_master(struct pci_dev *dev) | 208 | void pcibios_set_master(struct pci_dev *dev) |
215 | { | 209 | { |
216 | /* No special bus mastering setup handling */ | 210 | /* No special bus mastering setup handling */ |
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 3f8b74f07147..e091b0afdc8a 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -2793,6 +2793,18 @@ static void __pci_set_master(struct pci_dev *dev, bool enable) | |||
2793 | } | 2793 | } |
2794 | 2794 | ||
2795 | /** | 2795 | /** |
2796 | * pcibios_setup - process "pci=" kernel boot arguments | ||
2797 | * @str: string used to pass in "pci=" kernel boot arguments | ||
2798 | * | ||
2799 | * Process kernel boot arguments. This is the default implementation. | ||
2800 | * Architecture specific implementations can override this as necessary. | ||
2801 | */ | ||
2802 | char * __weak __init pcibios_setup(char *str) | ||
2803 | { | ||
2804 | return str; | ||
2805 | } | ||
2806 | |||
2807 | /** | ||
2796 | * pcibios_set_master - enable PCI bus-mastering for device dev | 2808 | * pcibios_set_master - enable PCI bus-mastering for device dev |
2797 | * @dev: the PCI device to enable | 2809 | * @dev: the PCI device to enable |
2798 | * | 2810 | * |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 0769aa409085..85cffb823b4e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -678,6 +678,7 @@ extern int no_pci_devices(void); | |||
678 | 678 | ||
679 | void pcibios_fixup_bus(struct pci_bus *); | 679 | void pcibios_fixup_bus(struct pci_bus *); |
680 | int __must_check pcibios_enable_device(struct pci_dev *, int mask); | 680 | int __must_check pcibios_enable_device(struct pci_dev *, int mask); |
681 | /* Architecture specific versions may override this (weak) */ | ||
681 | char *pcibios_setup(char *str); | 682 | char *pcibios_setup(char *str); |
682 | 683 | ||
683 | /* Used only when drivers/pci/setup.c is used */ | 684 | /* Used only when drivers/pci/setup.c is used */ |