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

X86: drivers: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitconst,
and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Daniel Drake <dsd@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+84 -89
+2 -2
arch/x86/include/asm/parport.h
··· 1 1 #ifndef _ASM_X86_PARPORT_H 2 2 #define _ASM_X86_PARPORT_H 3 3 4 - static int __devinit parport_pc_find_isa_ports(int autoirq, int autodma); 5 - static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma) 4 + static int parport_pc_find_isa_ports(int autoirq, int autodma); 5 + static int parport_pc_find_nonpci_ports(int autoirq, int autodma) 6 6 { 7 7 return parport_pc_find_isa_ports(autoirq, autodma); 8 8 }
+3 -4
arch/x86/include/asm/pci_x86.h
··· 140 140 141 141 extern int __init pci_mmcfg_arch_init(void); 142 142 extern void __init pci_mmcfg_arch_free(void); 143 - extern int __devinit pci_mmcfg_arch_map(struct pci_mmcfg_region *cfg); 143 + extern int pci_mmcfg_arch_map(struct pci_mmcfg_region *cfg); 144 144 extern void pci_mmcfg_arch_unmap(struct pci_mmcfg_region *cfg); 145 - extern int __devinit pci_mmconfig_insert(struct device *dev, 146 - u16 seg, u8 start, 147 - u8 end, phys_addr_t addr); 145 + extern int pci_mmconfig_insert(struct device *dev, u16 seg, u8 start, u8 end, 146 + phys_addr_t addr); 148 147 extern int pci_mmconfig_delete(u16 seg, u8 start, u8 end); 149 148 extern struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus); 150 149
+3 -3
arch/x86/kernel/cpu/perf_event_intel_uncore.c
··· 2500 2500 /* 2501 2501 * add a pci uncore device 2502 2502 */ 2503 - static int __devinit uncore_pci_add(struct intel_uncore_type *type, struct pci_dev *pdev) 2503 + static int uncore_pci_add(struct intel_uncore_type *type, struct pci_dev *pdev) 2504 2504 { 2505 2505 struct intel_uncore_pmu *pmu; 2506 2506 struct intel_uncore_box *box; ··· 2571 2571 kfree(box); 2572 2572 } 2573 2573 2574 - static int __devinit uncore_pci_probe(struct pci_dev *pdev, 2575 - const struct pci_device_id *id) 2574 + static int uncore_pci_probe(struct pci_dev *pdev, 2575 + const struct pci_device_id *id) 2576 2576 { 2577 2577 struct intel_uncore_type *type; 2578 2578
+1 -1
arch/x86/kernel/pci-dma.c
··· 265 265 #ifdef CONFIG_PCI 266 266 /* Many VIA bridges seem to corrupt data for DAC. Disable it here */ 267 267 268 - static __devinit void via_no_dac(struct pci_dev *dev) 268 + static void via_no_dac(struct pci_dev *dev) 269 269 { 270 270 if (forbid_dac == 0) { 271 271 dev_info(&dev->dev, "disabling DAC on VIA PCI bridge\n");
+2 -2
arch/x86/kernel/quirks.c
··· 8 8 9 9 #if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP) && defined(CONFIG_PCI) 10 10 11 - static void __devinit quirk_intel_irqbalance(struct pci_dev *dev) 11 + static void quirk_intel_irqbalance(struct pci_dev *dev) 12 12 { 13 13 u8 config; 14 14 u16 word; ··· 512 512 513 513 #if defined(CONFIG_PCI) && defined(CONFIG_NUMA) 514 514 /* Set correct numa_node information for AMD NB functions */ 515 - static void __devinit quirk_amd_nb_node(struct pci_dev *dev) 515 + static void quirk_amd_nb_node(struct pci_dev *dev) 516 516 { 517 517 struct pci_dev *nb_ht; 518 518 unsigned int devfn;
+1 -1
arch/x86/lib/delay.c
··· 98 98 delay_fn = delay_tsc; 99 99 } 100 100 101 - int __devinit read_current_timer(unsigned long *timer_val) 101 + int read_current_timer(unsigned long *timer_val) 102 102 { 103 103 if (delay_fn == delay_tsc) { 104 104 rdtscll(*timer_val);
+5 -6
arch/x86/pci/acpi.c
··· 145 145 } 146 146 147 147 #ifdef CONFIG_PCI_MMCONFIG 148 - static int __devinit check_segment(u16 seg, struct device *dev, char *estr) 148 + static int check_segment(u16 seg, struct device *dev, char *estr) 149 149 { 150 150 if (seg) { 151 151 dev_err(dev, ··· 168 168 return 0; 169 169 } 170 170 171 - static int __devinit setup_mcfg_map(struct pci_root_info *info, 172 - u16 seg, u8 start, u8 end, 173 - phys_addr_t addr) 171 + static int setup_mcfg_map(struct pci_root_info *info, u16 seg, u8 start, 172 + u8 end, phys_addr_t addr) 174 173 { 175 174 int result; 176 175 struct device *dev = &info->bridge->dev; ··· 207 208 } 208 209 } 209 210 #else 210 - static int __devinit setup_mcfg_map(struct pci_root_info *info, 211 + static int setup_mcfg_map(struct pci_root_info *info, 211 212 u16 seg, u8 start, u8 end, 212 213 phys_addr_t addr) 213 214 { ··· 473 474 info); 474 475 } 475 476 476 - struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_pci_root *root) 477 + struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) 477 478 { 478 479 struct acpi_device *device = root->device; 479 480 struct pci_root_info *info = NULL;
+2 -2
arch/x86/pci/bus_numa.c
··· 93 93 return info; 94 94 } 95 95 96 - void __devinit update_res(struct pci_root_info *info, resource_size_t start, 97 - resource_size_t end, unsigned long flags, int merge) 96 + void update_res(struct pci_root_info *info, resource_size_t start, 97 + resource_size_t end, unsigned long flags, int merge) 98 98 { 99 99 struct resource *res; 100 100 struct pci_root_res *root_res;
+13 -13
arch/x86/pci/common.c
··· 81 81 */ 82 82 DEFINE_RAW_SPINLOCK(pci_config_lock); 83 83 84 - static int __devinit can_skip_ioresource_align(const struct dmi_system_id *d) 84 + static int can_skip_ioresource_align(const struct dmi_system_id *d) 85 85 { 86 86 pci_probe |= PCI_CAN_SKIP_ISA_ALIGN; 87 87 printk(KERN_INFO "PCI: %s detected, can skip ISA alignment\n", d->ident); 88 88 return 0; 89 89 } 90 90 91 - static const struct dmi_system_id can_skip_pciprobe_dmi_table[] __devinitconst = { 91 + static const struct dmi_system_id can_skip_pciprobe_dmi_table[] = { 92 92 /* 93 93 * Systems where PCI IO resource ISA alignment can be skipped 94 94 * when the ISA enable bit in the bridge control is not set ··· 125 125 dmi_check_system(can_skip_pciprobe_dmi_table); 126 126 } 127 127 128 - static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev) 128 + static void pcibios_fixup_device_resources(struct pci_dev *dev) 129 129 { 130 130 struct resource *rom_r = &dev->resource[PCI_ROM_RESOURCE]; 131 131 struct resource *bar_r; ··· 162 162 * are examined. 163 163 */ 164 164 165 - void __devinit pcibios_fixup_bus(struct pci_bus *b) 165 + void pcibios_fixup_bus(struct pci_bus *b) 166 166 { 167 167 struct pci_dev *dev; 168 168 ··· 176 176 * on the kernel command line (which was parsed earlier). 177 177 */ 178 178 179 - static int __devinit set_bf_sort(const struct dmi_system_id *d) 179 + static int set_bf_sort(const struct dmi_system_id *d) 180 180 { 181 181 if (pci_bf_sort == pci_bf_sort_default) { 182 182 pci_bf_sort = pci_dmi_bf; ··· 185 185 return 0; 186 186 } 187 187 188 - static void __devinit read_dmi_type_b1(const struct dmi_header *dm, 188 + static void read_dmi_type_b1(const struct dmi_header *dm, 189 189 void *private_data) 190 190 { 191 191 u8 *d = (u8 *)dm + 4; ··· 207 207 } 208 208 } 209 209 210 - static int __devinit find_sort_method(const struct dmi_system_id *d) 210 + static int find_sort_method(const struct dmi_system_id *d) 211 211 { 212 212 dmi_walk(read_dmi_type_b1, NULL); 213 213 ··· 222 222 * Enable renumbering of PCI bus# ranges to reach all PCI busses (Cardbus) 223 223 */ 224 224 #ifdef __i386__ 225 - static int __devinit assign_all_busses(const struct dmi_system_id *d) 225 + static int assign_all_busses(const struct dmi_system_id *d) 226 226 { 227 227 pci_probe |= PCI_ASSIGN_ALL_BUSSES; 228 228 printk(KERN_INFO "%s detected: enabling PCI bus# renumbering" ··· 231 231 } 232 232 #endif 233 233 234 - static int __devinit set_scan_all(const struct dmi_system_id *d) 234 + static int set_scan_all(const struct dmi_system_id *d) 235 235 { 236 236 printk(KERN_INFO "PCI: %s detected, enabling pci=pcie_scan_all\n", 237 237 d->ident); ··· 239 239 return 0; 240 240 } 241 241 242 - static const struct dmi_system_id __devinitconst pciprobe_dmi_table[] = { 242 + static const struct dmi_system_id pciprobe_dmi_table[] = { 243 243 #ifdef __i386__ 244 244 /* 245 245 * Laptops which need pci=assign-busses to see Cardbus cards ··· 446 446 dmi_check_system(pciprobe_dmi_table); 447 447 } 448 448 449 - struct pci_bus * __devinit pcibios_scan_root(int busnum) 449 + struct pci_bus *pcibios_scan_root(int busnum) 450 450 { 451 451 struct pci_bus *bus = NULL; 452 452 ··· 665 665 return 0; 666 666 } 667 667 668 - struct pci_bus * __devinit pci_scan_bus_on_node(int busno, struct pci_ops *ops, int node) 668 + struct pci_bus *pci_scan_bus_on_node(int busno, struct pci_ops *ops, int node) 669 669 { 670 670 LIST_HEAD(resources); 671 671 struct pci_bus *bus = NULL; ··· 693 693 return bus; 694 694 } 695 695 696 - struct pci_bus * __devinit pci_scan_bus_with_sysdata(int busno) 696 + struct pci_bus *pci_scan_bus_with_sysdata(int busno) 697 697 { 698 698 return pci_scan_bus_on_node(busno, &pci_root_ops, -1); 699 699 }
+15 -15
arch/x86/pci/fixup.c
··· 9 9 #include <linux/vgaarb.h> 10 10 #include <asm/pci_x86.h> 11 11 12 - static void __devinit pci_fixup_i450nx(struct pci_dev *d) 12 + static void pci_fixup_i450nx(struct pci_dev *d) 13 13 { 14 14 /* 15 15 * i450NX -- Find and scan all secondary buses on all PXB's. ··· 34 34 } 35 35 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82451NX, pci_fixup_i450nx); 36 36 37 - static void __devinit pci_fixup_i450gx(struct pci_dev *d) 37 + static void pci_fixup_i450gx(struct pci_dev *d) 38 38 { 39 39 /* 40 40 * i450GX and i450KX -- Find and scan all secondary buses. ··· 48 48 } 49 49 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454GX, pci_fixup_i450gx); 50 50 51 - static void __devinit pci_fixup_umc_ide(struct pci_dev *d) 51 + static void pci_fixup_umc_ide(struct pci_dev *d) 52 52 { 53 53 /* 54 54 * UM8886BF IDE controller sets region type bits incorrectly, ··· 62 62 } 63 63 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_UMC, PCI_DEVICE_ID_UMC_UM8886BF, pci_fixup_umc_ide); 64 64 65 - static void __devinit pci_fixup_ncr53c810(struct pci_dev *d) 65 + static void pci_fixup_ncr53c810(struct pci_dev *d) 66 66 { 67 67 /* 68 68 * NCR 53C810 returns class code 0 (at least on some systems). ··· 75 75 } 76 76 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NCR, PCI_DEVICE_ID_NCR_53C810, pci_fixup_ncr53c810); 77 77 78 - static void __devinit pci_fixup_latency(struct pci_dev *d) 78 + static void pci_fixup_latency(struct pci_dev *d) 79 79 { 80 80 /* 81 81 * SiS 5597 and 5598 chipsets require latency timer set to ··· 87 87 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5597, pci_fixup_latency); 88 88 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5598, pci_fixup_latency); 89 89 90 - static void __devinit pci_fixup_piix4_acpi(struct pci_dev *d) 90 + static void pci_fixup_piix4_acpi(struct pci_dev *d) 91 91 { 92 92 /* 93 93 * PIIX4 ACPI device: hardwired IRQ9 ··· 163 163 * system to PCI bus no matter what are their window settings, so they are 164 164 * "transparent" (or subtractive decoding) from programmers point of view. 165 165 */ 166 - static void __devinit pci_fixup_transparent_bridge(struct pci_dev *dev) 166 + static void pci_fixup_transparent_bridge(struct pci_dev *dev) 167 167 { 168 168 if ((dev->device & 0xff00) == 0x2400) 169 169 dev->transparent = 1; ··· 317 317 * video device at this point. 318 318 */ 319 319 320 - static void __devinit pci_fixup_video(struct pci_dev *pdev) 320 + static void pci_fixup_video(struct pci_dev *pdev) 321 321 { 322 322 struct pci_dev *bridge; 323 323 struct pci_bus *bus; ··· 357 357 PCI_CLASS_DISPLAY_VGA, 8, pci_fixup_video); 358 358 359 359 360 - static const struct dmi_system_id __devinitconst msi_k8t_dmi_table[] = { 360 + static const struct dmi_system_id msi_k8t_dmi_table[] = { 361 361 { 362 362 .ident = "MSI-K8T-Neo2Fir", 363 363 .matches = { ··· 378 378 * The soundcard is only enabled, if the mainborad is identified 379 379 * via DMI-tables and the soundcard is detected to be off. 380 380 */ 381 - static void __devinit pci_fixup_msi_k8t_onboard_sound(struct pci_dev *dev) 381 + static void pci_fixup_msi_k8t_onboard_sound(struct pci_dev *dev) 382 382 { 383 383 unsigned char val; 384 384 if (!dmi_check_system(msi_k8t_dmi_table)) ··· 414 414 */ 415 415 static u16 toshiba_line_size; 416 416 417 - static const struct dmi_system_id __devinitconst toshiba_ohci1394_dmi_table[] = { 417 + static const struct dmi_system_id toshiba_ohci1394_dmi_table[] = { 418 418 { 419 419 .ident = "Toshiba PS5 based laptop", 420 420 .matches = { ··· 439 439 { } 440 440 }; 441 441 442 - static void __devinit pci_pre_fixup_toshiba_ohci1394(struct pci_dev *dev) 442 + static void pci_pre_fixup_toshiba_ohci1394(struct pci_dev *dev) 443 443 { 444 444 if (!dmi_check_system(toshiba_ohci1394_dmi_table)) 445 445 return; /* only applies to certain Toshibas (so far) */ ··· 450 450 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TI, 0x8032, 451 451 pci_pre_fixup_toshiba_ohci1394); 452 452 453 - static void __devinit pci_post_fixup_toshiba_ohci1394(struct pci_dev *dev) 453 + static void pci_post_fixup_toshiba_ohci1394(struct pci_dev *dev) 454 454 { 455 455 if (!dmi_check_system(toshiba_ohci1394_dmi_table)) 456 456 return; /* only applies to certain Toshibas (so far) */ ··· 488 488 * Siemens Nixdorf AG FSC Multiprocessor Interrupt Controller: 489 489 * prevent update of the BAR0, which doesn't look like a normal BAR. 490 490 */ 491 - static void __devinit pci_siemens_interrupt_controller(struct pci_dev *dev) 491 + static void pci_siemens_interrupt_controller(struct pci_dev *dev) 492 492 { 493 493 dev->resource[0].flags |= IORESOURCE_PCI_FIXED; 494 494 } ··· 531 531 * 532 532 * Match off the LPC and svid/sdid (older kernels lose the bridge subvendor) 533 533 */ 534 - static void __devinit twinhead_reserve_killing_zone(struct pci_dev *dev) 534 + static void twinhead_reserve_killing_zone(struct pci_dev *dev) 535 535 { 536 536 if (dev->subsystem_vendor == 0x14FF && dev->subsystem_device == 0xA003) { 537 537 pr_info("Reserving memory on Twinhead H12Y\n");
+2 -2
arch/x86/pci/legacy.c
··· 10 10 * Discover remaining PCI buses in case there are peer host bridges. 11 11 * We use the number of last PCI bus provided by the PCI BIOS. 12 12 */ 13 - static void __devinit pcibios_fixup_peer_bridges(void) 13 + static void pcibios_fixup_peer_bridges(void) 14 14 { 15 15 int n; 16 16 ··· 34 34 return 0; 35 35 } 36 36 37 - void __devinit pcibios_scan_specific_bus(int busn) 37 + void pcibios_scan_specific_bus(int busn) 38 38 { 39 39 int devfn; 40 40 long node;
+9 -12
arch/x86/pci/mmconfig-shared.c
··· 49 49 pci_mmconfig_remove(cfg); 50 50 } 51 51 52 - static __devinit void list_add_sorted(struct pci_mmcfg_region *new) 52 + static void list_add_sorted(struct pci_mmcfg_region *new) 53 53 { 54 54 struct pci_mmcfg_region *cfg; 55 55 ··· 65 65 list_add_tail_rcu(&new->list, &pci_mmcfg_list); 66 66 } 67 67 68 - static __devinit struct pci_mmcfg_region *pci_mmconfig_alloc(int segment, 69 - int start, 70 - int end, u64 addr) 68 + static struct pci_mmcfg_region *pci_mmconfig_alloc(int segment, int start, 69 + int end, u64 addr) 71 70 { 72 71 struct pci_mmcfg_region *new; 73 72 struct resource *res; ··· 370 371 return !list_empty(&pci_mmcfg_list); 371 372 } 372 373 373 - static acpi_status __devinit check_mcfg_resource(struct acpi_resource *res, 374 - void *data) 374 + static acpi_status check_mcfg_resource(struct acpi_resource *res, void *data) 375 375 { 376 376 struct resource *mcfg_res = data; 377 377 struct acpi_resource_address64 address; ··· 406 408 return AE_OK; 407 409 } 408 410 409 - static acpi_status __devinit find_mboard_resource(acpi_handle handle, u32 lvl, 410 - void *context, void **rv) 411 + static acpi_status find_mboard_resource(acpi_handle handle, u32 lvl, 412 + void *context, void **rv) 411 413 { 412 414 struct resource *mcfg_res = context; 413 415 ··· 420 422 return AE_OK; 421 423 } 422 424 423 - static int __devinit is_acpi_reserved(u64 start, u64 end, unsigned not_used) 425 + static int is_acpi_reserved(u64 start, u64 end, unsigned not_used) 424 426 { 425 427 struct resource mcfg_res; 426 428 ··· 691 693 late_initcall(pci_mmcfg_late_insert_resources); 692 694 693 695 /* Add MMCFG information for host bridges */ 694 - int __devinit pci_mmconfig_insert(struct device *dev, 695 - u16 seg, u8 start, u8 end, 696 - phys_addr_t addr) 696 + int pci_mmconfig_insert(struct device *dev, u16 seg, u8 start, u8 end, 697 + phys_addr_t addr) 697 698 { 698 699 int rc; 699 700 struct resource *tmp = NULL;
+1 -1
arch/x86/pci/mmconfig_32.c
··· 142 142 { 143 143 } 144 144 145 - int __devinit pci_mmcfg_arch_map(struct pci_mmcfg_region *cfg) 145 + int pci_mmcfg_arch_map(struct pci_mmcfg_region *cfg) 146 146 { 147 147 return 0; 148 148 }
+2 -2
arch/x86/pci/mmconfig_64.c
··· 95 95 .write = pci_mmcfg_write, 96 96 }; 97 97 98 - static void __iomem * __devinit mcfg_ioremap(struct pci_mmcfg_region *cfg) 98 + static void __iomem *mcfg_ioremap(struct pci_mmcfg_region *cfg) 99 99 { 100 100 void __iomem *addr; 101 101 u64 start, size; ··· 133 133 pci_mmcfg_arch_unmap(cfg); 134 134 } 135 135 136 - int __devinit pci_mmcfg_arch_map(struct pci_mmcfg_region *cfg) 136 + int pci_mmcfg_arch_map(struct pci_mmcfg_region *cfg) 137 137 { 138 138 cfg->virt = mcfg_ioremap(cfg); 139 139 if (!cfg->virt) {
+3 -3
arch/x86/pci/mrst.c
··· 247 247 /* Langwell devices are not true pci devices, they are not subject to 10 ms 248 248 * d3 to d0 delay required by pci spec. 249 249 */ 250 - static void __devinit pci_d3delay_fixup(struct pci_dev *dev) 250 + static void pci_d3delay_fixup(struct pci_dev *dev) 251 251 { 252 252 /* PCI fixups are effectively decided compile time. If we have a dual 253 253 SoC/non-SoC kernel we don't want to mangle d3 on non SoC devices */ ··· 262 262 } 263 263 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, pci_d3delay_fixup); 264 264 265 - static void __devinit mrst_power_off_unused_dev(struct pci_dev *dev) 265 + static void mrst_power_off_unused_dev(struct pci_dev *dev) 266 266 { 267 267 pci_set_power_state(dev, PCI_D3hot); 268 268 } ··· 275 275 /* 276 276 * Langwell devices reside at fixed offsets, don't try to move them. 277 277 */ 278 - static void __devinit pci_fixed_bar_fixup(struct pci_dev *dev) 278 + static void pci_fixed_bar_fixup(struct pci_dev *dev) 279 279 { 280 280 unsigned long offset; 281 281 u32 size;
+1 -1
arch/x86/pci/numaq_32.c
··· 116 116 }; 117 117 118 118 119 - static void __devinit pci_fixup_i450nx(struct pci_dev *d) 119 + static void pci_fixup_i450nx(struct pci_dev *d) 120 120 { 121 121 /* 122 122 * i450NX -- Find and scan all secondary buses on all PXB's.
+2 -2
arch/x86/pci/pcbios.c
··· 124 124 125 125 static int pci_bios_present; 126 126 127 - static int __devinit check_pcibios(void) 127 + static int check_pcibios(void) 128 128 { 129 129 u32 signature, eax, ebx, ecx; 130 130 u8 status, major_ver, minor_ver, hw_mech; ··· 312 312 * Try to find PCI BIOS. 313 313 */ 314 314 315 - static const struct pci_raw_ops * __devinit pci_find_bios(void) 315 + static const struct pci_raw_ops *pci_find_bios(void) 316 316 { 317 317 union bios32 *check; 318 318 unsigned char sum;
+1 -1
arch/x86/platform/mrst/mrst.c
··· 782 782 EXPORT_SYMBOL_GPL(intel_scu_notifier); 783 783 784 784 /* Called by IPC driver */ 785 - void __devinit intel_scu_devices_create(void) 785 + void intel_scu_devices_create(void) 786 786 { 787 787 int i; 788 788
+4 -4
arch/x86/platform/olpc/olpc-xo1-pm.c
··· 121 121 .enter = xo1_power_state_enter, 122 122 }; 123 123 124 - static int __devinit xo1_pm_probe(struct platform_device *pdev) 124 + static int xo1_pm_probe(struct platform_device *pdev) 125 125 { 126 126 struct resource *res; 127 127 int err; ··· 154 154 return 0; 155 155 } 156 156 157 - static int __devexit xo1_pm_remove(struct platform_device *pdev) 157 + static int xo1_pm_remove(struct platform_device *pdev) 158 158 { 159 159 mfd_cell_disable(pdev); 160 160 ··· 173 173 .owner = THIS_MODULE, 174 174 }, 175 175 .probe = xo1_pm_probe, 176 - .remove = __devexit_p(xo1_pm_remove), 176 + .remove = xo1_pm_remove, 177 177 }; 178 178 179 179 static struct platform_driver cs5535_acpi_driver = { ··· 182 182 .owner = THIS_MODULE, 183 183 }, 184 184 .probe = xo1_pm_probe, 185 - .remove = __devexit_p(xo1_pm_remove), 185 + .remove = xo1_pm_remove, 186 186 }; 187 187 188 188 static int __init xo1_pm_init(void)
+9 -9
arch/x86/platform/olpc/olpc-xo1-sci.c
··· 309 309 return 0; 310 310 } 311 311 312 - static int __devinit setup_sci_interrupt(struct platform_device *pdev) 312 + static int setup_sci_interrupt(struct platform_device *pdev) 313 313 { 314 314 u32 lo, hi; 315 315 u32 sts; ··· 351 351 return r; 352 352 } 353 353 354 - static int __devinit setup_ec_sci(void) 354 + static int setup_ec_sci(void) 355 355 { 356 356 int r; 357 357 ··· 395 395 gpio_free(OLPC_GPIO_ECSCI); 396 396 } 397 397 398 - static int __devinit setup_lid_events(void) 398 + static int setup_lid_events(void) 399 399 { 400 400 int r; 401 401 ··· 432 432 gpio_free(OLPC_GPIO_LID); 433 433 } 434 434 435 - static int __devinit setup_power_button(struct platform_device *pdev) 435 + static int setup_power_button(struct platform_device *pdev) 436 436 { 437 437 int r; 438 438 ··· 463 463 input_free_device(power_button_idev); 464 464 } 465 465 466 - static int __devinit setup_ebook_switch(struct platform_device *pdev) 466 + static int setup_ebook_switch(struct platform_device *pdev) 467 467 { 468 468 int r; 469 469 ··· 494 494 input_free_device(ebook_switch_idev); 495 495 } 496 496 497 - static int __devinit setup_lid_switch(struct platform_device *pdev) 497 + static int setup_lid_switch(struct platform_device *pdev) 498 498 { 499 499 int r; 500 500 ··· 538 538 input_free_device(lid_switch_idev); 539 539 } 540 540 541 - static int __devinit xo1_sci_probe(struct platform_device *pdev) 541 + static int xo1_sci_probe(struct platform_device *pdev) 542 542 { 543 543 struct resource *res; 544 544 int r; ··· 613 613 return r; 614 614 } 615 615 616 - static int __devexit xo1_sci_remove(struct platform_device *pdev) 616 + static int xo1_sci_remove(struct platform_device *pdev) 617 617 { 618 618 mfd_cell_disable(pdev); 619 619 free_irq(sci_irq, pdev); ··· 632 632 .name = "olpc-xo1-sci-acpi", 633 633 }, 634 634 .probe = xo1_sci_probe, 635 - .remove = __devexit_p(xo1_sci_remove), 635 + .remove = xo1_sci_remove, 636 636 .suspend = xo1_sci_suspend, 637 637 .resume = xo1_sci_resume, 638 638 };
+3 -3
arch/x86/platform/scx200/scx200_32.c
··· 35 35 }; 36 36 MODULE_DEVICE_TABLE(pci,scx200_tbl); 37 37 38 - static int __devinit scx200_probe(struct pci_dev *, const struct pci_device_id *); 38 + static int scx200_probe(struct pci_dev *, const struct pci_device_id *); 39 39 40 40 static struct pci_driver scx200_pci_driver = { 41 41 .name = "scx200", ··· 45 45 46 46 static DEFINE_MUTEX(scx200_gpio_config_lock); 47 47 48 - static void __devinit scx200_init_shadow(void) 48 + static void scx200_init_shadow(void) 49 49 { 50 50 int bank; 51 51 ··· 54 54 scx200_gpio_shadow[bank] = inl(scx200_gpio_base + 0x10 * bank); 55 55 } 56 56 57 - static int __devinit scx200_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 57 + static int scx200_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 58 58 { 59 59 unsigned base; 60 60