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

ARM: 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, __devinitdata,
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: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+131 -134
+2 -3
arch/arm/common/sa1111.c
··· 686 686 * %-EINVAL no platform data passed 687 687 * %0 successful. 688 688 */ 689 - static int __devinit 690 - __sa1111_probe(struct device *me, struct resource *mem, int irq) 689 + static int __sa1111_probe(struct device *me, struct resource *mem, int irq) 691 690 { 692 691 struct sa1111_platform_data *pd = me->platform_data; 693 692 struct sa1111 *sachip; ··· 1010 1011 #define sa1111_resume NULL 1011 1012 #endif 1012 1013 1013 - static int __devinit sa1111_probe(struct platform_device *pdev) 1014 + static int sa1111_probe(struct platform_device *pdev) 1014 1015 { 1015 1016 struct resource *mem; 1016 1017 int irq;
+3 -3
arch/arm/common/scoop.c
··· 176 176 #define scoop_resume NULL 177 177 #endif 178 178 179 - static int __devinit scoop_probe(struct platform_device *pdev) 179 + static int scoop_probe(struct platform_device *pdev) 180 180 { 181 181 struct scoop_dev *devptr; 182 182 struct scoop_config *inf; ··· 243 243 return ret; 244 244 } 245 245 246 - static int __devexit scoop_remove(struct platform_device *pdev) 246 + static int scoop_remove(struct platform_device *pdev) 247 247 { 248 248 struct scoop_dev *sdev = platform_get_drvdata(pdev); 249 249 int ret; ··· 268 268 269 269 static struct platform_driver scoop_driver = { 270 270 .probe = scoop_probe, 271 - .remove = __devexit_p(scoop_remove), 271 + .remove = scoop_remove, 272 272 .suspend = scoop_suspend, 273 273 .resume = scoop_resume, 274 274 .driver = {
+8 -10
arch/arm/kernel/bios32.c
··· 78 78 * Bug 3 is responsible for the sound DMA grinding to a halt. We now 79 79 * live with bug 2. 80 80 */ 81 - static void __devinit pci_fixup_83c553(struct pci_dev *dev) 81 + static void pci_fixup_83c553(struct pci_dev *dev) 82 82 { 83 83 /* 84 84 * Set memory region to start at address 0, and enable IO ··· 130 130 } 131 131 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_83C553, pci_fixup_83c553); 132 132 133 - static void __devinit pci_fixup_unassign(struct pci_dev *dev) 133 + static void pci_fixup_unassign(struct pci_dev *dev) 134 134 { 135 135 dev->resource[0].end -= dev->resource[0].start; 136 136 dev->resource[0].start = 0; ··· 142 142 * if it is the host bridge by marking it as such. These resources are of 143 143 * no consequence to the PCI layer (they are handled elsewhere). 144 144 */ 145 - static void __devinit pci_fixup_dec21285(struct pci_dev *dev) 145 + static void pci_fixup_dec21285(struct pci_dev *dev) 146 146 { 147 147 int i; 148 148 ··· 161 161 /* 162 162 * PCI IDE controllers use non-standard I/O port decoding, respect it. 163 163 */ 164 - static void __devinit pci_fixup_ide_bases(struct pci_dev *dev) 164 + static void pci_fixup_ide_bases(struct pci_dev *dev) 165 165 { 166 166 struct resource *r; 167 167 int i; ··· 182 182 /* 183 183 * Put the DEC21142 to sleep 184 184 */ 185 - static void __devinit pci_fixup_dec21142(struct pci_dev *dev) 185 + static void pci_fixup_dec21142(struct pci_dev *dev) 186 186 { 187 187 pci_write_config_dword(dev, 0x40, 0x80000000); 188 188 } ··· 204 204 * functional. However, The CY82C693U _does not work_ in bus 205 205 * master mode without locking the PCI bus solid. 206 206 */ 207 - static void __devinit pci_fixup_cy82c693(struct pci_dev *dev) 207 + static void pci_fixup_cy82c693(struct pci_dev *dev) 208 208 { 209 209 if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE) { 210 210 u32 base0, base1; ··· 254 254 } 255 255 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, pci_fixup_cy82c693); 256 256 257 - static void __devinit pci_fixup_it8152(struct pci_dev *dev) 257 + static void pci_fixup_it8152(struct pci_dev *dev) 258 258 { 259 259 int i; 260 260 /* fixup for ITE 8152 devices */ ··· 361 361 printk(KERN_INFO "PCI: bus%d: Fast back to back transfers %sabled\n", 362 362 bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis"); 363 363 } 364 - #ifdef CONFIG_HOTPLUG 365 364 EXPORT_SYMBOL(pcibios_fixup_bus); 366 - #endif 367 365 368 366 /* 369 367 * Swizzle the device pin each time we cross a bridge. If a platform does ··· 378 380 * PCI standard swizzle is implemented on plug-in cards and Cardbus based 379 381 * PCI extenders, so it can not be ignored. 380 382 */ 381 - static u8 __devinit pcibios_swizzle(struct pci_dev *dev, u8 *pin) 383 + static u8 pcibios_swizzle(struct pci_dev *dev, u8 *pin) 382 384 { 383 385 struct pci_sys_data *sys = dev->sysdata; 384 386 int slot, oldpin = *pin;
+2 -2
arch/arm/kernel/etm.c
··· 339 339 .fops = &etb_fops, 340 340 }; 341 341 342 - static int __devinit etb_probe(struct amba_device *dev, const struct amba_id *id) 342 + static int etb_probe(struct amba_device *dev, const struct amba_id *id) 343 343 { 344 344 struct tracectx *t = &tracer; 345 345 int ret = 0; ··· 531 531 static struct kobj_attribute trace_mode_attr = 532 532 __ATTR(trace_mode, 0644, trace_mode_show, trace_mode_store); 533 533 534 - static int __devinit etm_probe(struct amba_device *dev, const struct amba_id *id) 534 + static int etm_probe(struct amba_device *dev, const struct amba_id *id) 535 535 { 536 536 struct tracectx *t = &tracer; 537 537 int ret = 0;
+5 -5
arch/arm/kernel/perf_event_cpu.c
··· 132 132 return 0; 133 133 } 134 134 135 - static void __devinit cpu_pmu_init(struct arm_pmu *cpu_pmu) 135 + static void cpu_pmu_init(struct arm_pmu *cpu_pmu) 136 136 { 137 137 int cpu; 138 138 for_each_possible_cpu(cpu) { ··· 178 178 /* 179 179 * PMU platform driver and devicetree bindings. 180 180 */ 181 - static struct of_device_id __devinitdata cpu_pmu_of_device_ids[] = { 181 + static struct of_device_id cpu_pmu_of_device_ids[] = { 182 182 {.compatible = "arm,cortex-a15-pmu", .data = armv7_a15_pmu_init}, 183 183 {.compatible = "arm,cortex-a9-pmu", .data = armv7_a9_pmu_init}, 184 184 {.compatible = "arm,cortex-a8-pmu", .data = armv7_a8_pmu_init}, ··· 190 190 {}, 191 191 }; 192 192 193 - static struct platform_device_id __devinitdata cpu_pmu_plat_device_ids[] = { 193 + static struct platform_device_id cpu_pmu_plat_device_ids[] = { 194 194 {.name = "arm-pmu"}, 195 195 {}, 196 196 }; ··· 198 198 /* 199 199 * CPU PMU identification and probing. 200 200 */ 201 - static int __devinit probe_current_pmu(struct arm_pmu *pmu) 201 + static int probe_current_pmu(struct arm_pmu *pmu) 202 202 { 203 203 int cpu = get_cpu(); 204 204 unsigned long cpuid = read_cpuid_id(); ··· 252 252 return ret; 253 253 } 254 254 255 - static int __devinit cpu_pmu_device_probe(struct platform_device *pdev) 255 + static int cpu_pmu_device_probe(struct platform_device *pdev) 256 256 { 257 257 const struct of_device_id *of_id; 258 258 int (*init_fn)(struct arm_pmu *);
+2 -2
arch/arm/kernel/perf_event_v6.c
··· 653 653 &armv6_perf_cache_map, 0xFF); 654 654 } 655 655 656 - static int __devinit armv6pmu_init(struct arm_pmu *cpu_pmu) 656 + static int armv6pmu_init(struct arm_pmu *cpu_pmu) 657 657 { 658 658 cpu_pmu->name = "v6"; 659 659 cpu_pmu->handle_irq = armv6pmu_handle_irq; ··· 685 685 &armv6mpcore_perf_cache_map, 0xFF); 686 686 } 687 687 688 - static int __devinit armv6mpcore_pmu_init(struct arm_pmu *cpu_pmu) 688 + static int armv6mpcore_pmu_init(struct arm_pmu *cpu_pmu) 689 689 { 690 690 cpu_pmu->name = "v6mpcore"; 691 691 cpu_pmu->handle_irq = armv6pmu_handle_irq;
+6 -6
arch/arm/kernel/perf_event_v7.c
··· 1226 1226 cpu_pmu->max_period = (1LLU << 32) - 1; 1227 1227 }; 1228 1228 1229 - static u32 __devinit armv7_read_num_pmnc_events(void) 1229 + static u32 armv7_read_num_pmnc_events(void) 1230 1230 { 1231 1231 u32 nb_cnt; 1232 1232 ··· 1237 1237 return nb_cnt + 1; 1238 1238 } 1239 1239 1240 - static int __devinit armv7_a8_pmu_init(struct arm_pmu *cpu_pmu) 1240 + static int armv7_a8_pmu_init(struct arm_pmu *cpu_pmu) 1241 1241 { 1242 1242 armv7pmu_init(cpu_pmu); 1243 1243 cpu_pmu->name = "ARMv7 Cortex-A8"; ··· 1246 1246 return 0; 1247 1247 } 1248 1248 1249 - static int __devinit armv7_a9_pmu_init(struct arm_pmu *cpu_pmu) 1249 + static int armv7_a9_pmu_init(struct arm_pmu *cpu_pmu) 1250 1250 { 1251 1251 armv7pmu_init(cpu_pmu); 1252 1252 cpu_pmu->name = "ARMv7 Cortex-A9"; ··· 1255 1255 return 0; 1256 1256 } 1257 1257 1258 - static int __devinit armv7_a5_pmu_init(struct arm_pmu *cpu_pmu) 1258 + static int armv7_a5_pmu_init(struct arm_pmu *cpu_pmu) 1259 1259 { 1260 1260 armv7pmu_init(cpu_pmu); 1261 1261 cpu_pmu->name = "ARMv7 Cortex-A5"; ··· 1264 1264 return 0; 1265 1265 } 1266 1266 1267 - static int __devinit armv7_a15_pmu_init(struct arm_pmu *cpu_pmu) 1267 + static int armv7_a15_pmu_init(struct arm_pmu *cpu_pmu) 1268 1268 { 1269 1269 armv7pmu_init(cpu_pmu); 1270 1270 cpu_pmu->name = "ARMv7 Cortex-A15"; ··· 1274 1274 return 0; 1275 1275 } 1276 1276 1277 - static int __devinit armv7_a7_pmu_init(struct arm_pmu *cpu_pmu) 1277 + static int armv7_a7_pmu_init(struct arm_pmu *cpu_pmu) 1278 1278 { 1279 1279 armv7pmu_init(cpu_pmu); 1280 1280 cpu_pmu->name = "ARMv7 Cortex-A7";
+2 -2
arch/arm/kernel/perf_event_xscale.c
··· 440 440 &xscale_perf_cache_map, 0xFF); 441 441 } 442 442 443 - static int __devinit xscale1pmu_init(struct arm_pmu *cpu_pmu) 443 + static int xscale1pmu_init(struct arm_pmu *cpu_pmu) 444 444 { 445 445 cpu_pmu->name = "xscale1"; 446 446 cpu_pmu->handle_irq = xscale1pmu_handle_irq; ··· 810 810 } 811 811 } 812 812 813 - static int __devinit xscale2pmu_init(struct arm_pmu *cpu_pmu) 813 + static int xscale2pmu_init(struct arm_pmu *cpu_pmu) 814 814 { 815 815 cpu_pmu->name = "xscale2"; 816 816 cpu_pmu->handle_irq = xscale2pmu_handle_irq;
+1 -1
arch/arm/mach-davinci/board-dm646x-evm.c
··· 358 358 return 0; 359 359 } 360 360 361 - static int __devexit cpld_video_remove(struct i2c_client *client) 361 + static int cpld_video_remove(struct i2c_client *client) 362 362 { 363 363 cpld_client = NULL; 364 364 return 0;
+2 -2
arch/arm/mach-davinci/cdce949.c
··· 256 256 return 0; 257 257 } 258 258 259 - static int __devexit cdce_remove(struct i2c_client *client) 259 + static int cdce_remove(struct i2c_client *client) 260 260 { 261 261 cdce_i2c_client = NULL; 262 262 return 0; ··· 274 274 .name = "cdce949", 275 275 }, 276 276 .probe = cdce_probe, 277 - .remove = __devexit_p(cdce_remove), 277 + .remove = cdce_remove, 278 278 .id_table = cdce_id, 279 279 }; 280 280
+1 -1
arch/arm/mach-dove/pcie.c
··· 135 135 .write = pcie_wr_conf, 136 136 }; 137 137 138 - static void __devinit rc_pci_fixup(struct pci_dev *dev) 138 + static void rc_pci_fixup(struct pci_dev *dev) 139 139 { 140 140 /* 141 141 * Prevent enumeration of root complex.
+1 -1
arch/arm/mach-imx/cpufreq.c
··· 188 188 .name = "imx", 189 189 }; 190 190 191 - static int __devinit mxc_cpufreq_driver_init(void) 191 + static int mxc_cpufreq_driver_init(void) 192 192 { 193 193 return cpufreq_register_driver(&mxc_driver); 194 194 }
+1 -1
arch/arm/mach-imx/mmdc.c
··· 21 21 #define BP_MMDC_MAPSR_PSD 0 22 22 #define BP_MMDC_MAPSR_PSS 4 23 23 24 - static int __devinit imx_mmdc_probe(struct platform_device *pdev) 24 + static int imx_mmdc_probe(struct platform_device *pdev) 25 25 { 26 26 struct device_node *np = pdev->dev.of_node; 27 27 void __iomem *mmdc_base, *reg;
+1 -1
arch/arm/mach-iop13xx/pci.c
··· 504 504 505 505 /* Scan an IOP13XX PCI bus. nr selects which ATU we use. 506 506 */ 507 - struct pci_bus * __devinit iop13xx_scan_bus(int nr, struct pci_sys_data *sys) 507 + struct pci_bus *iop13xx_scan_bus(int nr, struct pci_sys_data *sys) 508 508 { 509 509 int which_atu; 510 510 struct pci_bus *bus = NULL;
+1 -1
arch/arm/mach-kirkwood/pcie.c
··· 214 214 * PCI_CLASS_BRIDGE_HOST or Linux will errantly try to process the BAR's on 215 215 * the device. Decoding setup is handled by the orion code. 216 216 */ 217 - static void __devinit rc_pci_fixup(struct pci_dev *dev) 217 + static void rc_pci_fixup(struct pci_dev *dev) 218 218 { 219 219 if (dev->bus->parent == NULL && dev->devfn == 0) { 220 220 int i;
+1 -1
arch/arm/mach-ks8695/board-acs5k.c
··· 92 92 }, 93 93 }; 94 94 95 - static void __devinit acs5k_i2c_init(void) 95 + static void acs5k_i2c_init(void) 96 96 { 97 97 /* The gpio interface */ 98 98 platform_device_register(&acs5k_i2c_device);
+2 -2
arch/arm/mach-mmp/sram.c
··· 61 61 } 62 62 EXPORT_SYMBOL(sram_get_gpool); 63 63 64 - static int __devinit sram_probe(struct platform_device *pdev) 64 + static int sram_probe(struct platform_device *pdev) 65 65 { 66 66 struct sram_platdata *pdata = pdev->dev.platform_data; 67 67 struct sram_bank_info *info; ··· 125 125 return ret; 126 126 } 127 127 128 - static int __devexit sram_remove(struct platform_device *pdev) 128 + static int sram_remove(struct platform_device *pdev) 129 129 { 130 130 struct sram_bank_info *info; 131 131
+1 -1
arch/arm/mach-msm/proc_comm.c
··· 120 120 * and unknown state. This function should be called early to 121 121 * wait on the ARM9. 122 122 */ 123 - void __devinit proc_comm_boot_wait(void) 123 + void proc_comm_boot_wait(void) 124 124 { 125 125 void __iomem *base = MSM_SHARED_RAM_BASE; 126 126
+1 -1
arch/arm/mach-msm/smd.c
··· 988 988 return 0; 989 989 } 990 990 991 - static int __devinit msm_smd_probe(struct platform_device *pdev) 991 + static int msm_smd_probe(struct platform_device *pdev) 992 992 { 993 993 /* 994 994 * If we haven't waited for the ARM9 to boot up till now,
+1 -1
arch/arm/mach-mv78xx0/pcie.c
··· 173 173 .write = pcie_wr_conf, 174 174 }; 175 175 176 - static void __devinit rc_pci_fixup(struct pci_dev *dev) 176 + static void rc_pci_fixup(struct pci_dev *dev) 177 177 { 178 178 /* 179 179 * Prevent enumeration of root complex.
+3 -3
arch/arm/mach-omap1/mailbox.c
··· 142 142 143 143 static struct omap_mbox *omap1_mboxes[] = { &mbox_dsp_info, NULL }; 144 144 145 - static int __devinit omap1_mbox_probe(struct platform_device *pdev) 145 + static int omap1_mbox_probe(struct platform_device *pdev) 146 146 { 147 147 struct resource *mem; 148 148 int ret; ··· 165 165 return 0; 166 166 } 167 167 168 - static int __devexit omap1_mbox_remove(struct platform_device *pdev) 168 + static int omap1_mbox_remove(struct platform_device *pdev) 169 169 { 170 170 omap_mbox_unregister(); 171 171 iounmap(mbox_base); ··· 174 174 175 175 static struct platform_driver omap1_mbox_driver = { 176 176 .probe = omap1_mbox_probe, 177 - .remove = __devexit_p(omap1_mbox_remove), 177 + .remove = omap1_mbox_remove, 178 178 .driver = { 179 179 .name = "omap-mailbox", 180 180 },
+6 -6
arch/arm/mach-omap2/gpmc.c
··· 744 744 return request_irq(gpmc_irq, gpmc_handle_irq, 0, "gpmc", NULL); 745 745 } 746 746 747 - static __devexit int gpmc_free_irq(void) 747 + static int gpmc_free_irq(void) 748 748 { 749 749 int i; 750 750 ··· 762 762 return 0; 763 763 } 764 764 765 - static void __devexit gpmc_mem_exit(void) 765 + static void gpmc_mem_exit(void) 766 766 { 767 767 int cs; 768 768 ··· 774 774 775 775 } 776 776 777 - static int __devinit gpmc_mem_init(void) 777 + static int gpmc_mem_init(void) 778 778 { 779 779 int cs, rc; 780 780 unsigned long boot_rom_space = 0; ··· 1121 1121 return 0; 1122 1122 } 1123 1123 1124 - static __devinit int gpmc_probe(struct platform_device *pdev) 1124 + static int gpmc_probe(struct platform_device *pdev) 1125 1125 { 1126 1126 int rc; 1127 1127 u32 l; ··· 1177 1177 return 0; 1178 1178 } 1179 1179 1180 - static __devexit int gpmc_remove(struct platform_device *pdev) 1180 + static int gpmc_remove(struct platform_device *pdev) 1181 1181 { 1182 1182 gpmc_free_irq(); 1183 1183 gpmc_mem_exit(); ··· 1187 1187 1188 1188 static struct platform_driver gpmc_driver = { 1189 1189 .probe = gpmc_probe, 1190 - .remove = __devexit_p(gpmc_remove), 1190 + .remove = gpmc_remove, 1191 1191 .driver = { 1192 1192 .name = DEVICE_NAME, 1193 1193 .owner = THIS_MODULE,
+3 -3
arch/arm/mach-omap2/mailbox.c
··· 342 342 struct omap_mbox *omap4_mboxes[] = { &mbox_1_info, &mbox_2_info, NULL }; 343 343 #endif 344 344 345 - static int __devinit omap2_mbox_probe(struct platform_device *pdev) 345 + static int omap2_mbox_probe(struct platform_device *pdev) 346 346 { 347 347 struct resource *mem; 348 348 int ret; ··· 395 395 return 0; 396 396 } 397 397 398 - static int __devexit omap2_mbox_remove(struct platform_device *pdev) 398 + static int omap2_mbox_remove(struct platform_device *pdev) 399 399 { 400 400 omap_mbox_unregister(); 401 401 iounmap(mbox_base); ··· 404 404 405 405 static struct platform_driver omap2_mbox_driver = { 406 406 .probe = omap2_mbox_probe, 407 - .remove = __devexit_p(omap2_mbox_remove), 407 + .remove = omap2_mbox_remove, 408 408 .driver = { 409 409 .name = "omap-mailbox", 410 410 },
+1 -1
arch/arm/mach-orion5x/pci.c
··· 506 506 /***************************************************************************** 507 507 * General PCIe + PCI 508 508 ****************************************************************************/ 509 - static void __devinit rc_pci_fixup(struct pci_dev *dev) 509 + static void rc_pci_fixup(struct pci_dev *dev) 510 510 { 511 511 /* 512 512 * Prevent enumeration of root complex.
+1 -1
arch/arm/mach-prima2/pm.c
··· 123 123 {} 124 124 }; 125 125 126 - static int __devinit sirfsoc_memc_probe(struct platform_device *op) 126 + static int sirfsoc_memc_probe(struct platform_device *op) 127 127 { 128 128 struct device_node *np = op->dev.of_node; 129 129
+1 -1
arch/arm/mach-prima2/rtciobrg.c
··· 107 107 {} 108 108 }; 109 109 110 - static int __devinit sirfsoc_rtciobrg_probe(struct platform_device *op) 110 + static int sirfsoc_rtciobrg_probe(struct platform_device *op) 111 111 { 112 112 struct device_node *np = op->dev.of_node; 113 113
+1 -1
arch/arm/mach-pxa/corgi_pm.c
··· 198 198 199 199 static struct platform_device *corgipm_device; 200 200 201 - static int __devinit corgipm_init(void) 201 + static int corgipm_init(void) 202 202 { 203 203 int ret; 204 204
+2 -2
arch/arm/mach-pxa/sharpsl_pm.c
··· 829 829 }; 830 830 #endif 831 831 832 - static int __devinit sharpsl_pm_probe(struct platform_device *pdev) 832 + static int sharpsl_pm_probe(struct platform_device *pdev) 833 833 { 834 834 int ret, irq; 835 835 ··· 941 941 }, 942 942 }; 943 943 944 - static int __devinit sharpsl_pm_init(void) 944 + static int sharpsl_pm_init(void) 945 945 { 946 946 return platform_driver_register(&sharpsl_pm_driver); 947 947 }
+1 -1
arch/arm/mach-pxa/spitz_pm.c
··· 232 232 233 233 static struct platform_device *spitzpm_device; 234 234 235 - static int __devinit spitzpm_init(void) 235 + static int spitzpm_init(void) 236 236 { 237 237 int ret; 238 238
+2 -2
arch/arm/mach-pxa/tosa-bt.c
··· 102 102 return rc; 103 103 } 104 104 105 - static int __devexit tosa_bt_remove(struct platform_device *dev) 105 + static int tosa_bt_remove(struct platform_device *dev) 106 106 { 107 107 struct tosa_bt_data *data = dev->dev.platform_data; 108 108 struct rfkill *rfk = platform_get_drvdata(dev); ··· 125 125 126 126 static struct platform_driver tosa_bt_driver = { 127 127 .probe = tosa_bt_probe, 128 - .remove = __devexit_p(tosa_bt_remove), 128 + .remove = tosa_bt_remove, 129 129 130 130 .driver = { 131 131 .name = "tosa-bt",
+1 -1
arch/arm/mach-s3c24xx/h1940-bluetooth.c
··· 62 62 .set_block = h1940bt_set_block, 63 63 }; 64 64 65 - static int __devinit h1940bt_probe(struct platform_device *pdev) 65 + static int h1940bt_probe(struct platform_device *pdev) 66 66 { 67 67 struct rfkill *rfk; 68 68 int ret = 0;
+3 -3
arch/arm/mach-s3c24xx/mach-osiris-dvs.c
··· 93 93 .notifier_call = osiris_dvs_notify, 94 94 }; 95 95 96 - static int __devinit osiris_dvs_probe(struct platform_device *pdev) 96 + static int osiris_dvs_probe(struct platform_device *pdev) 97 97 { 98 98 int ret; 99 99 ··· 126 126 return ret; 127 127 } 128 128 129 - static int __devexit osiris_dvs_remove(struct platform_device *pdev) 129 + static int osiris_dvs_remove(struct platform_device *pdev) 130 130 { 131 131 dev_info(&pdev->dev, "exiting\n"); 132 132 ··· 167 167 168 168 static struct platform_driver osiris_dvs_driver = { 169 169 .probe = osiris_dvs_probe, 170 - .remove = __devexit_p(osiris_dvs_remove), 170 + .remove = osiris_dvs_remove, 171 171 .driver = { 172 172 .name = "osiris-dvs", 173 173 .owner = THIS_MODULE,
+3 -3
arch/arm/mach-s3c64xx/mach-crag6410-module.c
··· 290 290 .platform_data = &wm2200_pdata, }, 291 291 }; 292 292 293 - static __devinitdata const struct { 293 + static const struct { 294 294 u8 id; 295 295 u8 rev; 296 296 const char *name; ··· 343 343 .i2c_devs = wm2200_i2c, .num_i2c_devs = ARRAY_SIZE(wm2200_i2c) }, 344 344 }; 345 345 346 - static __devinit int wlf_gf_module_probe(struct i2c_client *i2c, 347 - const struct i2c_device_id *i2c_id) 346 + static int wlf_gf_module_probe(struct i2c_client *i2c, 347 + const struct i2c_device_id *i2c_id) 348 348 { 349 349 int ret, i, j, id, rev; 350 350
+34 -34
arch/arm/mach-s3c64xx/mach-crag6410.c
··· 171 171 }; 172 172 173 173 /* 405566 clocks per frame => 60Hz refresh requires 24333960Hz clock */ 174 - static struct s3c_fb_platdata crag6410_lcd_pdata __devinitdata = { 174 + static struct s3c_fb_platdata crag6410_lcd_pdata = { 175 175 .setup_gpio = s3c64xx_fb_gpio_setup_24bpp, 176 176 .vtiming = &crag6410_lcd_timing, 177 177 .win[0] = &crag6410_fb_win0, ··· 181 181 182 182 /* 2x6 keypad */ 183 183 184 - static uint32_t crag6410_keymap[] __devinitdata = { 184 + static uint32_t crag6410_keymap[] = { 185 185 /* KEY(row, col, keycode) */ 186 186 KEY(0, 0, KEY_VOLUMEUP), 187 187 KEY(0, 1, KEY_HOME), ··· 197 197 KEY(1, 5, KEY_CAMERA), 198 198 }; 199 199 200 - static struct matrix_keymap_data crag6410_keymap_data __devinitdata = { 200 + static struct matrix_keymap_data crag6410_keymap_data = { 201 201 .keymap = crag6410_keymap, 202 202 .keymap_size = ARRAY_SIZE(crag6410_keymap), 203 203 }; 204 204 205 - static struct samsung_keypad_platdata crag6410_keypad_data __devinitdata = { 205 + static struct samsung_keypad_platdata crag6410_keypad_data = { 206 206 .keymap_data = &crag6410_keymap_data, 207 207 .rows = 2, 208 208 .cols = 6, ··· 407 407 .dvs_gpio = S3C64XX_GPK(0), 408 408 }; 409 409 410 - static struct regulator_consumer_supply vddarm_consumers[] __devinitdata = { 410 + static struct regulator_consumer_supply vddarm_consumers[] = { 411 411 REGULATOR_SUPPLY("vddarm", NULL), 412 412 }; 413 413 414 - static struct regulator_init_data vddarm __devinitdata = { 414 + static struct regulator_init_data vddarm = { 415 415 .constraints = { 416 416 .name = "VDDARM", 417 417 .min_uV = 1000000, ··· 425 425 .driver_data = &vddarm_pdata, 426 426 }; 427 427 428 - static struct regulator_consumer_supply vddint_consumers[] __devinitdata = { 428 + static struct regulator_consumer_supply vddint_consumers[] = { 429 429 REGULATOR_SUPPLY("vddint", NULL), 430 430 }; 431 431 432 - static struct regulator_init_data vddint __devinitdata = { 432 + static struct regulator_init_data vddint = { 433 433 .constraints = { 434 434 .name = "VDDINT", 435 435 .min_uV = 1000000, ··· 442 442 .supply_regulator = "WALLVDD", 443 443 }; 444 444 445 - static struct regulator_init_data vddmem __devinitdata = { 445 + static struct regulator_init_data vddmem = { 446 446 .constraints = { 447 447 .name = "VDDMEM", 448 448 .always_on = 1, 449 449 }, 450 450 }; 451 451 452 - static struct regulator_init_data vddsys __devinitdata = { 452 + static struct regulator_init_data vddsys = { 453 453 .constraints = { 454 454 .name = "VDDSYS,VDDEXT,VDDPCM,VDDSS", 455 455 .always_on = 1, 456 456 }, 457 457 }; 458 458 459 - static struct regulator_consumer_supply vddmmc_consumers[] __devinitdata = { 459 + static struct regulator_consumer_supply vddmmc_consumers[] = { 460 460 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.0"), 461 461 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.1"), 462 462 REGULATOR_SUPPLY("vmmc", "s3c-sdhci.2"), 463 463 }; 464 464 465 - static struct regulator_init_data vddmmc __devinitdata = { 465 + static struct regulator_init_data vddmmc = { 466 466 .constraints = { 467 467 .name = "VDDMMC,UH", 468 468 .always_on = 1, ··· 472 472 .supply_regulator = "WALLVDD", 473 473 }; 474 474 475 - static struct regulator_init_data vddotgi __devinitdata = { 475 + static struct regulator_init_data vddotgi = { 476 476 .constraints = { 477 477 .name = "VDDOTGi", 478 478 .always_on = 1, ··· 480 480 .supply_regulator = "WALLVDD", 481 481 }; 482 482 483 - static struct regulator_init_data vddotg __devinitdata = { 483 + static struct regulator_init_data vddotg = { 484 484 .constraints = { 485 485 .name = "VDDOTG", 486 486 .always_on = 1, ··· 488 488 .supply_regulator = "WALLVDD", 489 489 }; 490 490 491 - static struct regulator_init_data vddhi __devinitdata = { 491 + static struct regulator_init_data vddhi = { 492 492 .constraints = { 493 493 .name = "VDDHI", 494 494 .always_on = 1, ··· 496 496 .supply_regulator = "WALLVDD", 497 497 }; 498 498 499 - static struct regulator_init_data vddadc __devinitdata = { 499 + static struct regulator_init_data vddadc = { 500 500 .constraints = { 501 501 .name = "VDDADC,VDDDAC", 502 502 .always_on = 1, ··· 504 504 .supply_regulator = "WALLVDD", 505 505 }; 506 506 507 - static struct regulator_init_data vddmem0 __devinitdata = { 507 + static struct regulator_init_data vddmem0 = { 508 508 .constraints = { 509 509 .name = "VDDMEM0", 510 510 .always_on = 1, ··· 512 512 .supply_regulator = "WALLVDD", 513 513 }; 514 514 515 - static struct regulator_init_data vddpll __devinitdata = { 515 + static struct regulator_init_data vddpll = { 516 516 .constraints = { 517 517 .name = "VDDPLL", 518 518 .always_on = 1, ··· 520 520 .supply_regulator = "WALLVDD", 521 521 }; 522 522 523 - static struct regulator_init_data vddlcd __devinitdata = { 523 + static struct regulator_init_data vddlcd = { 524 524 .constraints = { 525 525 .name = "VDDLCD", 526 526 .always_on = 1, ··· 528 528 .supply_regulator = "WALLVDD", 529 529 }; 530 530 531 - static struct regulator_init_data vddalive __devinitdata = { 531 + static struct regulator_init_data vddalive = { 532 532 .constraints = { 533 533 .name = "VDDALIVE", 534 534 .always_on = 1, ··· 536 536 .supply_regulator = "WALLVDD", 537 537 }; 538 538 539 - static struct wm831x_backup_pdata banff_backup_pdata __devinitdata = { 539 + static struct wm831x_backup_pdata banff_backup_pdata = { 540 540 .charger_enable = 1, 541 541 .vlim = 2500, /* mV */ 542 542 .ilim = 200, /* uA */ 543 543 }; 544 544 545 - static struct wm831x_status_pdata banff_red_led __devinitdata = { 545 + static struct wm831x_status_pdata banff_red_led = { 546 546 .name = "banff:red:", 547 547 .default_src = WM831X_STATUS_MANUAL, 548 548 }; 549 549 550 - static struct wm831x_status_pdata banff_green_led __devinitdata = { 550 + static struct wm831x_status_pdata banff_green_led = { 551 551 .name = "banff:green:", 552 552 .default_src = WM831X_STATUS_MANUAL, 553 553 }; 554 554 555 - static struct wm831x_touch_pdata touch_pdata __devinitdata = { 555 + static struct wm831x_touch_pdata touch_pdata = { 556 556 .data_irq = S3C_EINT(26), 557 557 .pd_irq = S3C_EINT(27), 558 558 }; 559 559 560 - static struct wm831x_pdata crag_pmic_pdata __devinitdata = { 560 + static struct wm831x_pdata crag_pmic_pdata = { 561 561 .wm831x_num = 1, 562 562 .gpio_base = BANFF_PMIC_GPIO_BASE, 563 563 .soft_shutdown = true, ··· 601 601 .touch = &touch_pdata, 602 602 }; 603 603 604 - static struct i2c_board_info i2c_devs0[] __devinitdata = { 604 + static struct i2c_board_info i2c_devs0[] = { 605 605 { I2C_BOARD_INFO("24c08", 0x50), }, 606 606 { I2C_BOARD_INFO("tca6408", 0x20), 607 607 .platform_data = &crag6410_pca_data, ··· 616 616 .frequency = 400000, 617 617 }; 618 618 619 - static struct regulator_consumer_supply pvdd_1v2_consumers[] __devinitdata = { 619 + static struct regulator_consumer_supply pvdd_1v2_consumers[] = { 620 620 REGULATOR_SUPPLY("DCVDD", "spi0.0"), 621 621 REGULATOR_SUPPLY("AVDD", "spi0.0"), 622 622 REGULATOR_SUPPLY("AVDD", "spi0.1"), 623 623 }; 624 624 625 - static struct regulator_init_data pvdd_1v2 __devinitdata = { 625 + static struct regulator_init_data pvdd_1v2 = { 626 626 .constraints = { 627 627 .name = "PVDD_1V2", 628 628 .valid_ops_mask = REGULATOR_CHANGE_STATUS, ··· 632 632 .num_consumer_supplies = ARRAY_SIZE(pvdd_1v2_consumers), 633 633 }; 634 634 635 - static struct regulator_consumer_supply pvdd_1v8_consumers[] __devinitdata = { 635 + static struct regulator_consumer_supply pvdd_1v8_consumers[] = { 636 636 REGULATOR_SUPPLY("LDOVDD", "1-001a"), 637 637 REGULATOR_SUPPLY("PLLVDD", "1-001a"), 638 638 REGULATOR_SUPPLY("DBVDD", "1-001a"), ··· 664 664 REGULATOR_SUPPLY("CPVDD", "wm5110-codec"), 665 665 }; 666 666 667 - static struct regulator_init_data pvdd_1v8 __devinitdata = { 667 + static struct regulator_init_data pvdd_1v8 = { 668 668 .constraints = { 669 669 .name = "PVDD_1V8", 670 670 .always_on = 1, ··· 674 674 .num_consumer_supplies = ARRAY_SIZE(pvdd_1v8_consumers), 675 675 }; 676 676 677 - static struct regulator_consumer_supply pvdd_3v3_consumers[] __devinitdata = { 677 + static struct regulator_consumer_supply pvdd_3v3_consumers[] = { 678 678 REGULATOR_SUPPLY("MICVDD", "1-001a"), 679 679 REGULATOR_SUPPLY("AVDD1", "1-001a"), 680 680 }; 681 681 682 - static struct regulator_init_data pvdd_3v3 __devinitdata = { 682 + static struct regulator_init_data pvdd_3v3 = { 683 683 .constraints = { 684 684 .name = "PVDD_3V3", 685 685 .always_on = 1, ··· 689 689 .num_consumer_supplies = ARRAY_SIZE(pvdd_3v3_consumers), 690 690 }; 691 691 692 - static struct wm831x_pdata glenfarclas_pmic_pdata __devinitdata = { 692 + static struct wm831x_pdata glenfarclas_pmic_pdata = { 693 693 .wm831x_num = 2, 694 694 .irq_base = GLENFARCLAS_PMIC_IRQ_BASE, 695 695 .gpio_base = GLENFARCLAS_PMIC_GPIO_BASE, ··· 721 721 }, 722 722 }; 723 723 724 - static struct i2c_board_info i2c_devs1[] __devinitdata = { 724 + static struct i2c_board_info i2c_devs1[] = { 725 725 { I2C_BOARD_INFO("wm8311", 0x34), 726 726 .irq = S3C_EINT(0), 727 727 .platform_data = &glenfarclas_pmic_pdata },
+1 -1
arch/arm/mach-sa1100/jornada720_ssp.c
··· 130 130 }; 131 131 EXPORT_SYMBOL(jornada_ssp_end); 132 132 133 - static int __devinit jornada_ssp_probe(struct platform_device *dev) 133 + static int jornada_ssp_probe(struct platform_device *dev) 134 134 { 135 135 int ret; 136 136
+4 -4
arch/arm/mach-sa1100/neponset.c
··· 154 154 return ret; 155 155 } 156 156 157 - static struct sa1100_port_fns neponset_port_fns __devinitdata = { 157 + static struct sa1100_port_fns neponset_port_fns = { 158 158 .set_mctrl = neponset_set_mctrl, 159 159 .get_mctrl = neponset_get_mctrl, 160 160 }; ··· 233 233 .disable_devs = SA1111_DEVID_PS2_MSE, 234 234 }; 235 235 236 - static int __devinit neponset_probe(struct platform_device *dev) 236 + static int neponset_probe(struct platform_device *dev) 237 237 { 238 238 struct neponset_drvdata *d; 239 239 struct resource *nep_res, *sa1111_res, *smc91x_res; ··· 368 368 return ret; 369 369 } 370 370 371 - static int __devexit neponset_remove(struct platform_device *dev) 371 + static int neponset_remove(struct platform_device *dev) 372 372 { 373 373 struct neponset_drvdata *d = platform_get_drvdata(dev); 374 374 int irq = platform_get_irq(dev, 0); ··· 420 420 421 421 static struct platform_driver neponset_device_driver = { 422 422 .probe = neponset_probe, 423 - .remove = __devexit_p(neponset_remove), 423 + .remove = neponset_remove, 424 424 .driver = { 425 425 .name = "neponset", 426 426 .owner = THIS_MODULE,
+3 -3
arch/arm/mach-tegra/pcie.c
··· 331 331 .write = tegra_pcie_write_conf, 332 332 }; 333 333 334 - static void __devinit tegra_pcie_fixup_bridge(struct pci_dev *dev) 334 + static void tegra_pcie_fixup_bridge(struct pci_dev *dev) 335 335 { 336 336 u16 reg; 337 337 ··· 345 345 DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, tegra_pcie_fixup_bridge); 346 346 347 347 /* Tegra PCIE root complex wrongly reports device class */ 348 - static void __devinit tegra_pcie_fixup_class(struct pci_dev *dev) 348 + static void tegra_pcie_fixup_class(struct pci_dev *dev) 349 349 { 350 350 dev->class = PCI_CLASS_BRIDGE_PCI << 8; 351 351 } ··· 353 353 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA, 0x0bf1, tegra_pcie_fixup_class); 354 354 355 355 /* Tegra PCIE requires relaxed ordering */ 356 - static void __devinit tegra_pcie_relax_enable(struct pci_dev *dev) 356 + static void tegra_pcie_relax_enable(struct pci_dev *dev) 357 357 { 358 358 pcie_capability_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_RELAX_EN); 359 359 }
+3 -3
arch/arm/mach-tegra/tegra2_emc.c
··· 268 268 } 269 269 #endif 270 270 271 - static struct tegra_emc_pdata __devinit *tegra_emc_fill_pdata(struct platform_device *pdev) 271 + static struct tegra_emc_pdata *tegra_emc_fill_pdata(struct platform_device *pdev) 272 272 { 273 273 struct clk *c = clk_get_sys(NULL, "emc"); 274 274 struct tegra_emc_pdata *pdata; ··· 296 296 return pdata; 297 297 } 298 298 299 - static int __devinit tegra_emc_probe(struct platform_device *pdev) 299 + static int tegra_emc_probe(struct platform_device *pdev) 300 300 { 301 301 struct tegra_emc_pdata *pdata; 302 302 struct resource *res; ··· 333 333 return 0; 334 334 } 335 335 336 - static struct of_device_id tegra_emc_of_match[] __devinitdata = { 336 + static struct of_device_id tegra_emc_of_match[] = { 337 337 { .compatible = "nvidia,tegra20-emc", }, 338 338 { }, 339 339 };
+3 -3
arch/arm/mach-u300/dummyspichip.c
··· 222 222 223 223 static DEVICE_ATTR(looptest, S_IRUGO, dummy_looptest, NULL); 224 224 225 - static int __devinit pl022_dummy_probe(struct spi_device *spi) 225 + static int pl022_dummy_probe(struct spi_device *spi) 226 226 { 227 227 struct dummy *p_dummy; 228 228 int status; ··· 251 251 return status; 252 252 } 253 253 254 - static int __devexit pl022_dummy_remove(struct spi_device *spi) 254 + static int pl022_dummy_remove(struct spi_device *spi) 255 255 { 256 256 struct dummy *p_dummy = dev_get_drvdata(&spi->dev); 257 257 ··· 269 269 .owner = THIS_MODULE, 270 270 }, 271 271 .probe = pl022_dummy_probe, 272 - .remove = __devexit_p(pl022_dummy_remove), 272 + .remove = pl022_dummy_remove, 273 273 }; 274 274 275 275 static int __init pl022_init_dummy(void)
+3 -3
arch/arm/plat-omap/dma.c
··· 2000 2000 omap_clear_dma(ch); 2001 2001 } 2002 2002 2003 - static int __devinit omap_system_dma_probe(struct platform_device *pdev) 2003 + static int omap_system_dma_probe(struct platform_device *pdev) 2004 2004 { 2005 2005 int ch, ret = 0; 2006 2006 int dma_irq; ··· 2116 2116 return ret; 2117 2117 } 2118 2118 2119 - static int __devexit omap_system_dma_remove(struct platform_device *pdev) 2119 + static int omap_system_dma_remove(struct platform_device *pdev) 2120 2120 { 2121 2121 int dma_irq; 2122 2122 ··· 2140 2140 2141 2141 static struct platform_driver omap_system_dma_driver = { 2142 2142 .probe = omap_system_dma_probe, 2143 - .remove = __devexit_p(omap_system_dma_remove), 2143 + .remove = omap_system_dma_remove, 2144 2144 .driver = { 2145 2145 .name = "omap_dma_system" 2146 2146 },
+3 -3
arch/arm/plat-omap/dmtimer.c
··· 777 777 * Called by driver framework at the end of device registration for all 778 778 * timer devices. 779 779 */ 780 - static int __devinit omap_dm_timer_probe(struct platform_device *pdev) 780 + static int omap_dm_timer_probe(struct platform_device *pdev) 781 781 { 782 782 unsigned long flags; 783 783 struct omap_dm_timer *timer; ··· 864 864 * In addition to freeing platform resources it also deletes the timer 865 865 * entry from the local list. 866 866 */ 867 - static int __devexit omap_dm_timer_remove(struct platform_device *pdev) 867 + static int omap_dm_timer_remove(struct platform_device *pdev) 868 868 { 869 869 struct omap_dm_timer *timer; 870 870 unsigned long flags; ··· 891 891 892 892 static struct platform_driver omap_dm_timer_driver = { 893 893 .probe = omap_dm_timer_probe, 894 - .remove = __devexit_p(omap_dm_timer_remove), 894 + .remove = omap_dm_timer_remove, 895 895 .driver = { 896 896 .name = "omap_timer", 897 897 .of_match_table = of_match_ptr(omap_timer_match),
+3 -3
arch/arm/plat-pxa/ssp.c
··· 72 72 } 73 73 EXPORT_SYMBOL(pxa_ssp_free); 74 74 75 - static int __devinit pxa_ssp_probe(struct platform_device *pdev) 75 + static int pxa_ssp_probe(struct platform_device *pdev) 76 76 { 77 77 const struct platform_device_id *id = platform_get_device_id(pdev); 78 78 struct resource *res; ··· 164 164 return ret; 165 165 } 166 166 167 - static int __devexit pxa_ssp_remove(struct platform_device *pdev) 167 + static int pxa_ssp_remove(struct platform_device *pdev) 168 168 { 169 169 struct resource *res; 170 170 struct ssp_device *ssp; ··· 199 199 200 200 static struct platform_driver pxa_ssp_driver = { 201 201 .probe = pxa_ssp_probe, 202 - .remove = __devexit_p(pxa_ssp_remove), 202 + .remove = pxa_ssp_remove, 203 203 .driver = { 204 204 .owner = THIS_MODULE, 205 205 .name = "pxa2xx-ssp",
+2 -2
arch/arm/plat-samsung/adc.c
··· 416 416 return 0; 417 417 } 418 418 419 - static int __devexit s3c_adc_remove(struct platform_device *pdev) 419 + static int s3c_adc_remove(struct platform_device *pdev) 420 420 { 421 421 struct adc_device *adc = platform_get_drvdata(pdev); 422 422 ··· 516 516 .pm = &adc_pm_ops, 517 517 }, 518 518 .probe = s3c_adc_probe, 519 - .remove = __devexit_p(s3c_adc_remove), 519 + .remove = s3c_adc_remove, 520 520 }; 521 521 522 522 static int __init adc_init(void)