Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Remove __dev* markings

CONFIG_HOTPLUG is going away as an option so __devexit_p, __devint,
__devinitdata, __devinitconst, and _devexit are no longer needed.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bill Pemberton and committed by
Greg Kroah-Hartman
15856ad5 7dc30303

+93 -93
+2 -2
drivers/pci/hotplug/cpcihp_zt5550.c
··· 271 271 272 272 } 273 273 274 - static void __devexit zt5550_hc_remove_one(struct pci_dev *pdev) 274 + static void zt5550_hc_remove_one(struct pci_dev *pdev) 275 275 { 276 276 cpci_hp_stop(); 277 277 cpci_hp_unregister_bus(bus0); ··· 290 290 .name = "zt5550_hc", 291 291 .id_table = zt5550_hc_pci_tbl, 292 292 .probe = zt5550_hc_init_one, 293 - .remove = __devexit_p(zt5550_hc_remove_one), 293 + .remove = zt5550_hc_remove_one, 294 294 }; 295 295 296 296 static int __init zt5550_init(void)
+3 -3
drivers/pci/ioapic.c
··· 27 27 u32 gsi_base; 28 28 }; 29 29 30 - static int __devinit ioapic_probe(struct pci_dev *dev, const struct pci_device_id *ent) 30 + static int ioapic_probe(struct pci_dev *dev, const struct pci_device_id *ent) 31 31 { 32 32 acpi_handle handle; 33 33 acpi_status status; ··· 88 88 return -ENODEV; 89 89 } 90 90 91 - static void __devexit ioapic_remove(struct pci_dev *dev) 91 + static void ioapic_remove(struct pci_dev *dev) 92 92 { 93 93 struct ioapic *ioapic = pci_get_drvdata(dev); 94 94 ··· 110 110 .name = "ioapic", 111 111 .id_table = ioapic_devices, 112 112 .probe = ioapic_probe, 113 - .remove = __devexit_p(ioapic_remove), 113 + .remove = ioapic_remove, 114 114 }; 115 115 116 116 static int __init ioapic_init(void)
+2 -2
drivers/pci/pci.c
··· 86 86 * the dfl or actual value as it sees fit. Don't forget this is 87 87 * measured in 32-bit words, not bytes. 88 88 */ 89 - u8 pci_dfl_cache_line_size __devinitdata = L1_CACHE_BYTES >> 2; 89 + u8 pci_dfl_cache_line_size = L1_CACHE_BYTES >> 2; 90 90 u8 pci_cache_line_size; 91 91 92 92 /* ··· 3857 3857 3858 3858 late_initcall(pci_resource_alignment_sysfs_init); 3859 3859 3860 - static void __devinit pci_no_domains(void) 3860 + static void pci_no_domains(void) 3861 3861 { 3862 3862 #ifdef CONFIG_PCI_DOMAINS 3863 3863 pci_domains_supported = 0;
+2 -2
drivers/pci/pcie/aer/aerdrv.c
··· 41 41 MODULE_DESCRIPTION(DRIVER_DESC); 42 42 MODULE_LICENSE("GPL"); 43 43 44 - static int __devinit aer_probe(struct pcie_device *dev); 44 + static int aer_probe(struct pcie_device *dev); 45 45 static void aer_remove(struct pcie_device *dev); 46 46 static pci_ers_result_t aer_error_detected(struct pci_dev *dev, 47 47 enum pci_channel_state error); ··· 300 300 * 301 301 * Invoked when PCI Express bus loads AER service driver. 302 302 */ 303 - static int __devinit aer_probe(struct pcie_device *dev) 303 + static int aer_probe(struct pcie_device *dev) 304 304 { 305 305 int status; 306 306 struct aer_rpc *rpc;
+1 -1
drivers/pci/pcie/portdrv_pci.c
··· 182 182 * this port device. 183 183 * 184 184 */ 185 - static int __devinit pcie_portdrv_probe(struct pci_dev *dev, 185 + static int pcie_portdrv_probe(struct pci_dev *dev, 186 186 const struct pci_device_id *id) 187 187 { 188 188 int status;
+9 -9
drivers/pci/probe.c
··· 305 305 } 306 306 } 307 307 308 - static void __devinit pci_read_bridge_io(struct pci_bus *child) 308 + static void pci_read_bridge_io(struct pci_bus *child) 309 309 { 310 310 struct pci_dev *dev = child->self; 311 311 u8 io_base_lo, io_limit_lo; ··· 345 345 } 346 346 } 347 347 348 - static void __devinit pci_read_bridge_mmio(struct pci_bus *child) 348 + static void pci_read_bridge_mmio(struct pci_bus *child) 349 349 { 350 350 struct pci_dev *dev = child->self; 351 351 u16 mem_base_lo, mem_limit_lo; ··· 367 367 } 368 368 } 369 369 370 - static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child) 370 + static void pci_read_bridge_mmio_pref(struct pci_bus *child) 371 371 { 372 372 struct pci_dev *dev = child->self; 373 373 u16 mem_base_lo, mem_limit_lo; ··· 417 417 } 418 418 } 419 419 420 - void __devinit pci_read_bridge_bases(struct pci_bus *child) 420 + void pci_read_bridge_bases(struct pci_bus *child) 421 421 { 422 422 struct pci_dev *dev = child->self; 423 423 struct resource *res; ··· 705 705 * them, we proceed to assigning numbers to the remaining buses in 706 706 * order to avoid overlaps between old and new bus numbers. 707 707 */ 708 - int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) 708 + int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) 709 709 { 710 710 struct pci_bus *child; 711 711 int is_cardbus = (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS); ··· 1586 1586 } 1587 1587 EXPORT_SYMBOL_GPL(pcie_bus_configure_settings); 1588 1588 1589 - unsigned int __devinit pci_scan_child_bus(struct pci_bus *bus) 1589 + unsigned int pci_scan_child_bus(struct pci_bus *bus) 1590 1590 { 1591 1591 unsigned int devfn, pass, max = bus->busn_res.start; 1592 1592 struct pci_dev *dev; ··· 1790 1790 res, ret ? "can not be" : "is"); 1791 1791 } 1792 1792 1793 - struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, 1793 + struct pci_bus *pci_scan_root_bus(struct device *parent, int bus, 1794 1794 struct pci_ops *ops, void *sysdata, struct list_head *resources) 1795 1795 { 1796 1796 struct pci_host_bridge_window *window; ··· 1826 1826 EXPORT_SYMBOL(pci_scan_root_bus); 1827 1827 1828 1828 /* Deprecated; use pci_scan_root_bus() instead */ 1829 - struct pci_bus * __devinit pci_scan_bus_parented(struct device *parent, 1829 + struct pci_bus *pci_scan_bus_parented(struct device *parent, 1830 1830 int bus, struct pci_ops *ops, void *sysdata) 1831 1831 { 1832 1832 LIST_HEAD(resources); ··· 1844 1844 } 1845 1845 EXPORT_SYMBOL(pci_scan_bus_parented); 1846 1846 1847 - struct pci_bus * __devinit pci_scan_bus(int bus, struct pci_ops *ops, 1847 + struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, 1848 1848 void *sysdata) 1849 1849 { 1850 1850 LIST_HEAD(resources);
+66 -66
drivers/pci/quirks.c
··· 37 37 * key system devices. For devices that need to have mmio decoding always-on, 38 38 * we need to set the dev->mmio_always_on bit. 39 39 */ 40 - static void __devinit quirk_mmio_always_on(struct pci_dev *dev) 40 + static void quirk_mmio_always_on(struct pci_dev *dev) 41 41 { 42 42 dev->mmio_always_on = 1; 43 43 } ··· 48 48 * Mark this device with a broken_parity_status, to allow 49 49 * PCI scanning code to "skip" this now blacklisted device. 50 50 */ 51 - static void __devinit quirk_mellanox_tavor(struct pci_dev *dev) 51 + static void quirk_mellanox_tavor(struct pci_dev *dev) 52 52 { 53 53 dev->broken_parity_status = 1; /* This device gives false positives */ 54 54 } ··· 83 83 This appears to be BIOS not version dependent. So presumably there is a 84 84 chipset level fix */ 85 85 86 - static void __devinit quirk_isa_dma_hangs(struct pci_dev *dev) 86 + static void quirk_isa_dma_hangs(struct pci_dev *dev) 87 87 { 88 88 if (!isa_dma_bridge_buggy) { 89 89 isa_dma_bridge_buggy=1; ··· 106 106 * Intel NM10 "TigerPoint" LPC PM1a_STS.BM_STS must be clear 107 107 * for some HT machines to use C4 w/o hanging. 108 108 */ 109 - static void __devinit quirk_tigerpoint_bm_sts(struct pci_dev *dev) 109 + static void quirk_tigerpoint_bm_sts(struct pci_dev *dev) 110 110 { 111 111 u32 pmbase; 112 112 u16 pm1a; ··· 125 125 /* 126 126 * Chipsets where PCI->PCI transfers vanish or hang 127 127 */ 128 - static void __devinit quirk_nopcipci(struct pci_dev *dev) 128 + static void quirk_nopcipci(struct pci_dev *dev) 129 129 { 130 130 if ((pci_pci_problems & PCIPCI_FAIL)==0) { 131 131 dev_info(&dev->dev, "Disabling direct PCI/PCI transfers\n"); ··· 135 135 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5597, quirk_nopcipci); 136 136 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_496, quirk_nopcipci); 137 137 138 - static void __devinit quirk_nopciamd(struct pci_dev *dev) 138 + static void quirk_nopciamd(struct pci_dev *dev) 139 139 { 140 140 u8 rev; 141 141 pci_read_config_byte(dev, 0x08, &rev); ··· 150 150 /* 151 151 * Triton requires workarounds to be used by the drivers 152 152 */ 153 - static void __devinit quirk_triton(struct pci_dev *dev) 153 + static void quirk_triton(struct pci_dev *dev) 154 154 { 155 155 if ((pci_pci_problems&PCIPCI_TRITON)==0) { 156 156 dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); ··· 229 229 /* 230 230 * VIA Apollo VP3 needs ETBF on BT848/878 231 231 */ 232 - static void __devinit quirk_viaetbf(struct pci_dev *dev) 232 + static void quirk_viaetbf(struct pci_dev *dev) 233 233 { 234 234 if ((pci_pci_problems&PCIPCI_VIAETBF)==0) { 235 235 dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); ··· 238 238 } 239 239 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C597_0, quirk_viaetbf); 240 240 241 - static void __devinit quirk_vsfx(struct pci_dev *dev) 241 + static void quirk_vsfx(struct pci_dev *dev) 242 242 { 243 243 if ((pci_pci_problems&PCIPCI_VSFX)==0) { 244 244 dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); ··· 253 253 * workaround applied too 254 254 * [Info kindly provided by ALi] 255 255 */ 256 - static void __devinit quirk_alimagik(struct pci_dev *dev) 256 + static void quirk_alimagik(struct pci_dev *dev) 257 257 { 258 258 if ((pci_pci_problems&PCIPCI_ALIMAGIK)==0) { 259 259 dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); ··· 267 267 * Natoma has some interesting boundary conditions with Zoran stuff 268 268 * at least 269 269 */ 270 - static void __devinit quirk_natoma(struct pci_dev *dev) 270 + static void quirk_natoma(struct pci_dev *dev) 271 271 { 272 272 if ((pci_pci_problems&PCIPCI_NATOMA)==0) { 273 273 dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); ··· 285 285 * This chip can cause PCI parity errors if config register 0xA0 is read 286 286 * while DMAs are occurring. 287 287 */ 288 - static void __devinit quirk_citrine(struct pci_dev *dev) 288 + static void quirk_citrine(struct pci_dev *dev) 289 289 { 290 290 dev->cfg_size = 0xA0; 291 291 } ··· 295 295 * S3 868 and 968 chips report region size equal to 32M, but they decode 64M. 296 296 * If it's needed, re-allocate the region. 297 297 */ 298 - static void __devinit quirk_s3_64M(struct pci_dev *dev) 298 + static void quirk_s3_64M(struct pci_dev *dev) 299 299 { 300 300 struct resource *r = &dev->resource[0]; 301 301 ··· 313 313 * BAR0 should be 8 bytes; instead, it may be set to something like 8k 314 314 * (which conflicts w/ BAR1's memory range). 315 315 */ 316 - static void __devinit quirk_cs5536_vsa(struct pci_dev *dev) 316 + static void quirk_cs5536_vsa(struct pci_dev *dev) 317 317 { 318 318 if (pci_resource_len(dev, 0) != 8) { 319 319 struct resource *res = &dev->resource[0]; ··· 324 324 } 325 325 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA, quirk_cs5536_vsa); 326 326 327 - static void __devinit quirk_io_region(struct pci_dev *dev, unsigned region, 327 + static void quirk_io_region(struct pci_dev *dev, unsigned region, 328 328 unsigned size, int nr, const char *name) 329 329 { 330 330 region &= ~(size-1); ··· 352 352 * ATI Northbridge setups MCE the processor if you even 353 353 * read somewhere between 0x3b0->0x3bb or read 0x3d3 354 354 */ 355 - static void __devinit quirk_ati_exploding_mce(struct pci_dev *dev) 355 + static void quirk_ati_exploding_mce(struct pci_dev *dev) 356 356 { 357 357 dev_info(&dev->dev, "ATI Northbridge, reserving I/O ports 0x3b0 to 0x3bb\n"); 358 358 /* Mae rhaid i ni beidio ag edrych ar y lleoliadiau I/O hyn */ ··· 372 372 * 0xE0 (64 bytes of ACPI registers) 373 373 * 0xE2 (32 bytes of SMB registers) 374 374 */ 375 - static void __devinit quirk_ali7101_acpi(struct pci_dev *dev) 375 + static void quirk_ali7101_acpi(struct pci_dev *dev) 376 376 { 377 377 u16 region; 378 378 ··· 440 440 * 0x90 (16 bytes of SMB registers) 441 441 * and a few strange programmable PIIX4 device resources. 442 442 */ 443 - static void __devinit quirk_piix4_acpi(struct pci_dev *dev) 443 + static void quirk_piix4_acpi(struct pci_dev *dev) 444 444 { 445 445 u32 region, res_a; 446 446 ··· 489 489 * 0x40 (128 bytes of ACPI, GPIO & TCO registers) 490 490 * 0x58 (64 bytes of GPIO I/O space) 491 491 */ 492 - static void __devinit quirk_ich4_lpc_acpi(struct pci_dev *dev) 492 + static void quirk_ich4_lpc_acpi(struct pci_dev *dev) 493 493 { 494 494 u32 region; 495 495 u8 enable; ··· 531 531 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801EB_0, quirk_ich4_lpc_acpi); 532 532 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_1, quirk_ich4_lpc_acpi); 533 533 534 - static void __devinit ich6_lpc_acpi_gpio(struct pci_dev *dev) 534 + static void ich6_lpc_acpi_gpio(struct pci_dev *dev) 535 535 { 536 536 u32 region; 537 537 u8 enable; ··· 555 555 } 556 556 } 557 557 558 - static void __devinit ich6_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name, int dynsize) 558 + static void ich6_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name, int dynsize) 559 559 { 560 560 u32 val; 561 561 u32 size, base; ··· 583 583 dev_info(&dev->dev, "%s PIO at %04x-%04x\n", name, base, base+size-1); 584 584 } 585 585 586 - static void __devinit quirk_ich6_lpc(struct pci_dev *dev) 586 + static void quirk_ich6_lpc(struct pci_dev *dev) 587 587 { 588 588 /* Shared ACPI/GPIO decode with all ICH6+ */ 589 589 ich6_lpc_acpi_gpio(dev); ··· 595 595 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_0, quirk_ich6_lpc); 596 596 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1, quirk_ich6_lpc); 597 597 598 - static void __devinit ich7_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name) 598 + static void ich7_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name) 599 599 { 600 600 u32 val; 601 601 u32 mask, base; ··· 619 619 } 620 620 621 621 /* ICH7-10 has the same common LPC generic IO decode registers */ 622 - static void __devinit quirk_ich7_lpc(struct pci_dev *dev) 622 + static void quirk_ich7_lpc(struct pci_dev *dev) 623 623 { 624 624 /* We share the common ACPI/GPIO decode with ICH6 */ 625 625 ich6_lpc_acpi_gpio(dev); ··· 648 648 * VIA ACPI: One IO region pointed to by longword at 649 649 * 0x48 or 0x20 (256 bytes of ACPI registers) 650 650 */ 651 - static void __devinit quirk_vt82c586_acpi(struct pci_dev *dev) 651 + static void quirk_vt82c586_acpi(struct pci_dev *dev) 652 652 { 653 653 u32 region; 654 654 ··· 666 666 * 0x70 (128 bytes of hardware monitoring register) 667 667 * 0x90 (16 bytes of SMB registers) 668 668 */ 669 - static void __devinit quirk_vt82c686_acpi(struct pci_dev *dev) 669 + static void quirk_vt82c686_acpi(struct pci_dev *dev) 670 670 { 671 671 u16 hm; 672 672 u32 smb; ··· 688 688 * 0x88 (128 bytes of power management registers) 689 689 * 0xd0 (16 bytes of SMB registers) 690 690 */ 691 - static void __devinit quirk_vt8235_acpi(struct pci_dev *dev) 691 + static void quirk_vt8235_acpi(struct pci_dev *dev) 692 692 { 693 693 u16 pm, smb; 694 694 ··· 706 706 * TI XIO2000a PCIe-PCI Bridge erroneously reports it supports fast back-to-back: 707 707 * Disable fast back-to-back on the secondary bus segment 708 708 */ 709 - static void __devinit quirk_xio2000a(struct pci_dev *dev) 709 + static void quirk_xio2000a(struct pci_dev *dev) 710 710 { 711 711 struct pci_dev *pdev; 712 712 u16 command; ··· 780 780 * noapic specified. For the moment we assume it's the erratum. We may be wrong 781 781 * of course. However the advice is demonstrably good even if so.. 782 782 */ 783 - static void __devinit quirk_amd_ioapic(struct pci_dev *dev) 783 + static void quirk_amd_ioapic(struct pci_dev *dev) 784 784 { 785 785 if (dev->revision >= 0x02) { 786 786 dev_warn(&dev->dev, "I/O APIC: AMD Erratum #22 may be present. In the event of instability try\n"); ··· 789 789 } 790 790 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_7410, quirk_amd_ioapic); 791 791 792 - static void __devinit quirk_ioapic_rmw(struct pci_dev *dev) 792 + static void quirk_ioapic_rmw(struct pci_dev *dev) 793 793 { 794 794 if (dev->devfn == 0 && dev->bus->number == 0) 795 795 sis_apic_bug = 1; ··· 801 801 * Some settings of MMRBC can lead to data corruption so block changes. 802 802 * See AMD 8131 HyperTransport PCI-X Tunnel Revision Guide 803 803 */ 804 - static void __devinit quirk_amd_8131_mmrbc(struct pci_dev *dev) 804 + static void quirk_amd_8131_mmrbc(struct pci_dev *dev) 805 805 { 806 806 if (dev->subordinate && dev->revision <= 0x12) { 807 807 dev_info(&dev->dev, "AMD8131 rev %x detected; " ··· 819 819 * value of the ACPI SCI interrupt is only done for convenience. 820 820 * -jgarzik 821 821 */ 822 - static void __devinit quirk_via_acpi(struct pci_dev *d) 822 + static void quirk_via_acpi(struct pci_dev *d) 823 823 { 824 824 /* 825 825 * VIA ACPI device: SCI IRQ line in PCI config byte 0x42 ··· 926 926 * We need to switch it off to be able to recognize the real 927 927 * type of the chip. 928 928 */ 929 - static void __devinit quirk_vt82c598_id(struct pci_dev *dev) 929 + static void quirk_vt82c598_id(struct pci_dev *dev) 930 930 { 931 931 pci_write_config_byte(dev, 0xfc, 0); 932 932 pci_read_config_word(dev, PCI_DEVICE_ID, &dev->device); ··· 978 978 * assigned to it. We force a larger allocation to ensure that 979 979 * nothing gets put too close to it. 980 980 */ 981 - static void __devinit quirk_dunord ( struct pci_dev * dev ) 981 + static void quirk_dunord(struct pci_dev *dev) 982 982 { 983 983 struct resource *r = &dev->resource [1]; 984 984 r->start = 0; ··· 992 992 * in the ProgIf. Unfortunately, the ProgIf value is wrong - 0x80 993 993 * instead of 0x01. 994 994 */ 995 - static void __devinit quirk_transparent_bridge(struct pci_dev *dev) 995 + static void quirk_transparent_bridge(struct pci_dev *dev) 996 996 { 997 997 dev->transparent = 1; 998 998 } ··· 1066 1066 /* 1067 1067 * Serverworks CSB5 IDE does not fully support native mode 1068 1068 */ 1069 - static void __devinit quirk_svwks_csb5ide(struct pci_dev *pdev) 1069 + static void quirk_svwks_csb5ide(struct pci_dev *pdev) 1070 1070 { 1071 1071 u8 prog; 1072 1072 pci_read_config_byte(pdev, PCI_CLASS_PROG, &prog); ··· 1082 1082 /* 1083 1083 * Intel 82801CAM ICH3-M datasheet says IDE modes must be the same 1084 1084 */ 1085 - static void __devinit quirk_ide_samemode(struct pci_dev *pdev) 1085 + static void quirk_ide_samemode(struct pci_dev *pdev) 1086 1086 { 1087 1087 u8 prog; 1088 1088 ··· 1101 1101 * Some ATA devices break if put into D3 1102 1102 */ 1103 1103 1104 - static void __devinit quirk_no_ata_d3(struct pci_dev *pdev) 1104 + static void quirk_no_ata_d3(struct pci_dev *pdev) 1105 1105 { 1106 1106 pdev->dev_flags |= PCI_DEV_FLAGS_NO_D3; 1107 1107 } ··· 1121 1121 /* This was originally an Alpha specific thing, but it really fits here. 1122 1122 * The i82375 PCI/EISA bridge appears as non-classified. Fix that. 1123 1123 */ 1124 - static void __devinit quirk_eisa_bridge(struct pci_dev *dev) 1124 + static void quirk_eisa_bridge(struct pci_dev *dev) 1125 1125 { 1126 1126 dev->class = PCI_CLASS_BRIDGE_EISA << 8; 1127 1127 } ··· 1155 1155 */ 1156 1156 static int asus_hides_smbus; 1157 1157 1158 - static void __devinit asus_hides_smbus_hostbridge(struct pci_dev *dev) 1158 + static void asus_hides_smbus_hostbridge(struct pci_dev *dev) 1159 1159 { 1160 1160 if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_ASUSTEK)) { 1161 1161 if (dev->device == PCI_DEVICE_ID_INTEL_82845_HB) ··· 1538 1538 #endif 1539 1539 1540 1540 #ifdef CONFIG_X86_IO_APIC 1541 - static void __devinit quirk_alder_ioapic(struct pci_dev *pdev) 1541 + static void quirk_alder_ioapic(struct pci_dev *pdev) 1542 1542 { 1543 1543 int i; 1544 1544 ··· 1561 1561 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EESSC, quirk_alder_ioapic); 1562 1562 #endif 1563 1563 1564 - static void __devinit quirk_pcie_mch(struct pci_dev *pdev) 1564 + static void quirk_pcie_mch(struct pci_dev *pdev) 1565 1565 { 1566 1566 pci_msi_off(pdev); 1567 1567 pdev->no_msi = 1; ··· 1575 1575 * It's possible for the MSI to get corrupted if shpc and acpi 1576 1576 * are used together on certain PXH-based systems. 1577 1577 */ 1578 - static void __devinit quirk_pcie_pxh(struct pci_dev *dev) 1578 + static void quirk_pcie_pxh(struct pci_dev *dev) 1579 1579 { 1580 1580 pci_msi_off(dev); 1581 1581 dev->no_msi = 1; ··· 1777 1777 * but the PIO transfers won't work if BAR0 falls at the odd 8 bytes. 1778 1778 * Re-allocate the region if needed... 1779 1779 */ 1780 - static void __devinit quirk_tc86c001_ide(struct pci_dev *dev) 1780 + static void quirk_tc86c001_ide(struct pci_dev *dev) 1781 1781 { 1782 1782 struct resource *r = &dev->resource[0]; 1783 1783 ··· 1790 1790 PCI_DEVICE_ID_TOSHIBA_TC86C001_IDE, 1791 1791 quirk_tc86c001_ide); 1792 1792 1793 - static void __devinit quirk_netmos(struct pci_dev *dev) 1793 + static void quirk_netmos(struct pci_dev *dev) 1794 1794 { 1795 1795 unsigned int num_parallel = (dev->subsystem_device & 0xf0) >> 4; 1796 1796 unsigned int num_serial = dev->subsystem_device & 0xf; ··· 1828 1828 DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID, 1829 1829 PCI_CLASS_COMMUNICATION_SERIAL, 8, quirk_netmos); 1830 1830 1831 - static void __devinit quirk_e100_interrupt(struct pci_dev *dev) 1831 + static void quirk_e100_interrupt(struct pci_dev *dev) 1832 1832 { 1833 1833 u16 command, pmcsr; 1834 1834 u8 __iomem *csr; ··· 1901 1901 * The 82575 and 82598 may experience data corruption issues when transitioning 1902 1902 * out of L0S. To prevent this we need to disable L0S on the pci-e link 1903 1903 */ 1904 - static void __devinit quirk_disable_aspm_l0s(struct pci_dev *dev) 1904 + static void quirk_disable_aspm_l0s(struct pci_dev *dev) 1905 1905 { 1906 1906 dev_info(&dev->dev, "Disabling L0s\n"); 1907 1907 pci_disable_link_state(dev, PCIE_LINK_STATE_L0S); ··· 1921 1921 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10f4, quirk_disable_aspm_l0s); 1922 1922 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x1508, quirk_disable_aspm_l0s); 1923 1923 1924 - static void __devinit fixup_rev1_53c810(struct pci_dev* dev) 1924 + static void fixup_rev1_53c810(struct pci_dev *dev) 1925 1925 { 1926 1926 /* rev 1 ncr53c810 chips don't set the class at all which means 1927 1927 * they don't get their resources remapped. Fix that here. ··· 1935 1935 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NCR, PCI_DEVICE_ID_NCR_53C810, fixup_rev1_53c810); 1936 1936 1937 1937 /* Enable 1k I/O space granularity on the Intel P64H2 */ 1938 - static void __devinit quirk_p64h2_1k_io(struct pci_dev *dev) 1938 + static void quirk_p64h2_1k_io(struct pci_dev *dev) 1939 1939 { 1940 1940 u16 en1k; 1941 1941 ··· 1968 1968 DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_CK804_PCIE, 1969 1969 quirk_nvidia_ck804_pcie_aer_ext_cap); 1970 1970 1971 - static void __devinit quirk_via_cx700_pci_parking_caching(struct pci_dev *dev) 1971 + static void quirk_via_cx700_pci_parking_caching(struct pci_dev *dev) 1972 1972 { 1973 1973 /* 1974 1974 * Disable PCI Bus Parking and PCI Master read caching on CX700 ··· 2031 2031 * We believe that it is legal to read beyond the end tag and 2032 2032 * therefore the solution is to limit the read/write length. 2033 2033 */ 2034 - static void __devinit quirk_brcm_570x_limit_vpd(struct pci_dev *dev) 2034 + static void quirk_brcm_570x_limit_vpd(struct pci_dev *dev) 2035 2035 { 2036 2036 /* 2037 2037 * Only disable the VPD capability for 5706, 5706S, 5708, ··· 2091 2091 * the DRBs - this is where we expose device 6. 2092 2092 * http://www.x86-secret.com/articles/tweak/pat/patsecrets-2.htm 2093 2093 */ 2094 - static void __devinit quirk_unhide_mch_dev6(struct pci_dev *dev) 2094 + static void quirk_unhide_mch_dev6(struct pci_dev *dev) 2095 2095 { 2096 2096 u8 reg; 2097 2097 ··· 2115 2115 * supports link speed auto negotiation, but falsely sets 2116 2116 * the link speed to 5GT/s. 2117 2117 */ 2118 - static void __devinit quirk_tile_plx_gen1(struct pci_dev *dev) 2118 + static void quirk_tile_plx_gen1(struct pci_dev *dev) 2119 2119 { 2120 2120 if (tile_plx_gen1) { 2121 2121 pci_write_config_dword(dev, 0x98, 0x1); ··· 2132 2132 * aware of it. Instead of setting the flag on all busses in the 2133 2133 * machine, simply disable MSI globally. 2134 2134 */ 2135 - static void __devinit quirk_disable_all_msi(struct pci_dev *dev) 2135 + static void quirk_disable_all_msi(struct pci_dev *dev) 2136 2136 { 2137 2137 pci_no_msi(); 2138 2138 dev_warn(&dev->dev, "MSI quirk detected; MSI disabled\n"); ··· 2146 2146 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8380_0, quirk_disable_all_msi); 2147 2147 2148 2148 /* Disable MSI on chipsets that are known to not support it */ 2149 - static void __devinit quirk_disable_msi(struct pci_dev *dev) 2149 + static void quirk_disable_msi(struct pci_dev *dev) 2150 2150 { 2151 2151 if (dev->subordinate) { 2152 2152 dev_warn(&dev->dev, "MSI quirk detected; " ··· 2164 2164 * we use the possible vendor/device IDs of the host bridge for the 2165 2165 * declared quirk, and search for the APC bridge by slot number. 2166 2166 */ 2167 - static void __devinit quirk_amd_780_apc_msi(struct pci_dev *host_bridge) 2167 + static void quirk_amd_780_apc_msi(struct pci_dev *host_bridge) 2168 2168 { 2169 2169 struct pci_dev *apc_bridge; 2170 2170 ··· 2272 2272 * for the MCP55 NIC. It is not yet determined whether the msi problem 2273 2273 * also affects other devices. As for now, turn off msi for this device. 2274 2274 */ 2275 - static void __devinit nvenet_msi_disable(struct pci_dev *dev) 2275 + static void nvenet_msi_disable(struct pci_dev *dev) 2276 2276 { 2277 2277 const char *board_name = dmi_get_system_info(DMI_BOARD_NAME); 2278 2278 ··· 2298 2298 * we have it set correctly. 2299 2299 * Note this is an undocumented register. 2300 2300 */ 2301 - static void __devinit nvbridge_check_legacy_irq_routing(struct pci_dev *dev) 2301 + static void nvbridge_check_legacy_irq_routing(struct pci_dev *dev) 2302 2302 { 2303 2303 u32 cfg; 2304 2304 ··· 2534 2534 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, PCI_ANY_ID, nv_msi_ht_cap_quirk_all); 2535 2535 DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AL, PCI_ANY_ID, nv_msi_ht_cap_quirk_all); 2536 2536 2537 - static void __devinit quirk_msi_intx_disable_bug(struct pci_dev *dev) 2537 + static void quirk_msi_intx_disable_bug(struct pci_dev *dev) 2538 2538 { 2539 2539 dev->dev_flags |= PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG; 2540 2540 } 2541 - static void __devinit quirk_msi_intx_disable_ati_bug(struct pci_dev *dev) 2541 + static void quirk_msi_intx_disable_ati_bug(struct pci_dev *dev) 2542 2542 { 2543 2543 struct pci_dev *p; 2544 2544 ··· 2612 2612 * kernel fails to allocate resources when hotplug device is 2613 2613 * inserted and PCI bus is rescanned. 2614 2614 */ 2615 - static void __devinit quirk_hotplug_bridge(struct pci_dev *dev) 2615 + static void quirk_hotplug_bridge(struct pci_dev *dev) 2616 2616 { 2617 2617 dev->is_hotplug_bridge = 1; 2618 2618 } ··· 2752 2752 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x3c28, vtd_mask_spec_errors); 2753 2753 #endif 2754 2754 2755 - static void __devinit fixup_ti816x_class(struct pci_dev* dev) 2755 + static void fixup_ti816x_class(struct pci_dev *dev) 2756 2756 { 2757 2757 /* TI 816x devices do not have class code set when in PCIe boot mode */ 2758 2758 dev_info(&dev->dev, "Setting PCI class for 816x PCIe device\n"); ··· 2764 2764 /* Some PCIe devices do not work reliably with the claimed maximum 2765 2765 * payload size supported. 2766 2766 */ 2767 - static void __devinit fixup_mpss_256(struct pci_dev *dev) 2767 + static void fixup_mpss_256(struct pci_dev *dev) 2768 2768 { 2769 2769 dev->pcie_mpss = 1; /* 256 bytes */ 2770 2770 } ··· 2782 2782 * coalescing must be disabled. Unfortunately, it cannot be re-enabled because 2783 2783 * it is possible to hotplug a device with MPS of 256B. 2784 2784 */ 2785 - static void __devinit quirk_intel_mc_errata(struct pci_dev *dev) 2785 + static void quirk_intel_mc_errata(struct pci_dev *dev) 2786 2786 { 2787 2787 int err; 2788 2788 u16 rcc; ··· 2888 2888 * This resolves crashes often seen on monitor unplug. 2889 2889 */ 2890 2890 #define I915_DEIER_REG 0x4400c 2891 - static void __devinit disable_igfx_irq(struct pci_dev *dev) 2891 + static void disable_igfx_irq(struct pci_dev *dev) 2892 2892 { 2893 2893 void __iomem *regs = pci_iomap(dev, 0, 0); 2894 2894 if (regs == NULL) { ··· 2914 2914 * PCI_COMMAND_INTX_DISABLE works though they actually do not properly 2915 2915 * support this feature. 2916 2916 */ 2917 - static void __devinit quirk_broken_intx_masking(struct pci_dev *dev) 2917 + static void quirk_broken_intx_masking(struct pci_dev *dev) 2918 2918 { 2919 2919 dev->broken_intx_masking = 1; 2920 2920 }
+5 -5
drivers/pci/xen-pcifront.c
··· 412 412 return 0; 413 413 } 414 414 415 - static int __devinit pcifront_scan_bus(struct pcifront_device *pdev, 415 + static int pcifront_scan_bus(struct pcifront_device *pdev, 416 416 unsigned int domain, unsigned int bus, 417 417 struct pci_bus *b) 418 418 { ··· 441 441 return 0; 442 442 } 443 443 444 - static int __devinit pcifront_scan_root(struct pcifront_device *pdev, 444 + static int pcifront_scan_root(struct pcifront_device *pdev, 445 445 unsigned int domain, unsigned int bus) 446 446 { 447 447 struct pci_bus *b; ··· 503 503 return err; 504 504 } 505 505 506 - static int __devinit pcifront_rescan_root(struct pcifront_device *pdev, 506 + static int pcifront_rescan_root(struct pcifront_device *pdev, 507 507 unsigned int domain, unsigned int bus) 508 508 { 509 509 int err; ··· 834 834 return err; 835 835 } 836 836 837 - static int __devinit pcifront_try_connect(struct pcifront_device *pdev) 837 + static int pcifront_try_connect(struct pcifront_device *pdev) 838 838 { 839 839 int err = -EFAULT; 840 840 int i, num_roots, len; ··· 924 924 return err; 925 925 } 926 926 927 - static int __devinit pcifront_attach_devices(struct pcifront_device *pdev) 927 + static int pcifront_attach_devices(struct pcifront_device *pdev) 928 928 { 929 929 int err = -EFAULT; 930 930 int i, num_roots, len;
+3 -3
include/linux/pci.h
··· 588 588 * in a generic manner. 589 589 */ 590 590 #define DEFINE_PCI_DEVICE_TABLE(_table) \ 591 - const struct pci_device_id _table[] __devinitconst 591 + const struct pci_device_id _table[] 592 592 593 593 /** 594 594 * PCI_DEVICE - macro used to describe a specific pci device ··· 686 686 int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); 687 687 int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax); 688 688 void pci_bus_release_busn_res(struct pci_bus *b); 689 - struct pci_bus * __devinit pci_scan_root_bus(struct device *parent, int bus, 689 + struct pci_bus *pci_scan_root_bus(struct device *parent, int bus, 690 690 struct pci_ops *ops, void *sysdata, 691 691 struct list_head *resources); 692 692 struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, ··· 1578 1578 1579 1579 extern unsigned long pci_cardbus_io_size; 1580 1580 extern unsigned long pci_cardbus_mem_size; 1581 - extern u8 __devinitdata pci_dfl_cache_line_size; 1581 + extern u8 pci_dfl_cache_line_size; 1582 1582 extern u8 pci_cache_line_size; 1583 1583 1584 1584 extern unsigned long pci_hotplug_io_size;