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

Drivers: char: 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,
__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: David Airlie <airlied@linux.ie>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+49 -58
+1 -2
drivers/char/agp/ali-agp.c
··· 299 299 { }, /* dummy final entry, always present */ 300 300 }; 301 301 302 - static int __devinit agp_ali_probe(struct pci_dev *pdev, 303 - const struct pci_device_id *ent) 302 + static int agp_ali_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 304 303 { 305 304 struct agp_device_ids *devs = ali_agp_device_ids; 306 305 struct agp_bridge_data *bridge;
+2 -2
drivers/char/agp/amd-k7-agp.c
··· 405 405 { }, /* dummy final entry, always present */ 406 406 }; 407 407 408 - static int __devinit agp_amdk7_probe(struct pci_dev *pdev, 409 - const struct pci_device_id *ent) 408 + static int agp_amdk7_probe(struct pci_dev *pdev, 409 + const struct pci_device_id *ent) 410 410 { 411 411 struct agp_bridge_data *bridge; 412 412 u8 cap_ptr;
+7 -8
drivers/char/agp/amd64-agp.c
··· 240 240 }; 241 241 242 242 /* Some basic sanity checks for the aperture. */ 243 - static int __devinit agp_aperture_valid(u64 aper, u32 size) 243 + static int agp_aperture_valid(u64 aper, u32 size) 244 244 { 245 245 if (!aperture_valid(aper, size, 32*1024*1024)) 246 246 return 0; ··· 267 267 * to allocate that much memory. But at least error out cleanly instead of 268 268 * crashing. 269 269 */ 270 - static __devinit int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp, 271 - u16 cap) 270 + static int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp, u16 cap) 272 271 { 273 272 u32 aper_low, aper_hi; 274 273 u64 aper, nb_aper; ··· 325 326 return 0; 326 327 } 327 328 328 - static __devinit int cache_nbs(struct pci_dev *pdev, u32 cap_ptr) 329 + static int cache_nbs(struct pci_dev *pdev, u32 cap_ptr) 329 330 { 330 331 int i; 331 332 ··· 351 352 } 352 353 353 354 /* Handle AMD 8151 quirks */ 354 - static void __devinit amd8151_init(struct pci_dev *pdev, struct agp_bridge_data *bridge) 355 + static void amd8151_init(struct pci_dev *pdev, struct agp_bridge_data *bridge) 355 356 { 356 357 char *revstring; 357 358 ··· 389 390 {8, 2048, 1, 4}, 390 391 {4, 1024, 0, 3} 391 392 }; 392 - static int __devinit uli_agp_init(struct pci_dev *pdev) 393 + static int uli_agp_init(struct pci_dev *pdev) 393 394 { 394 395 u32 httfea,baseaddr,enuscr; 395 396 struct pci_dev *dev1; ··· 512 513 return ret; 513 514 } 514 515 515 - static int __devinit agp_amd64_probe(struct pci_dev *pdev, 516 - const struct pci_device_id *ent) 516 + static int agp_amd64_probe(struct pci_dev *pdev, 517 + const struct pci_device_id *ent) 517 518 { 518 519 struct agp_bridge_data *bridge; 519 520 u8 cap_ptr;
+1 -2
drivers/char/agp/ati-agp.c
··· 490 490 { }, /* dummy final entry, always present */ 491 491 }; 492 492 493 - static int __devinit agp_ati_probe(struct pci_dev *pdev, 494 - const struct pci_device_id *ent) 493 + static int agp_ati_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 495 494 { 496 495 struct agp_device_ids *devs = ati_agp_device_ids; 497 496 struct agp_bridge_data *bridge;
+2 -2
drivers/char/agp/efficeon-agp.c
··· 343 343 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 344 344 }; 345 345 346 - static int __devinit agp_efficeon_probe(struct pci_dev *pdev, 347 - const struct pci_device_id *ent) 346 + static int agp_efficeon_probe(struct pci_dev *pdev, 347 + const struct pci_device_id *ent) 348 348 { 349 349 struct agp_bridge_data *bridge; 350 350 u8 cap_ptr;
+3 -3
drivers/char/agp/i460-agp.c
··· 587 587 .cant_use_aperture = true, 588 588 }; 589 589 590 - static int __devinit agp_intel_i460_probe(struct pci_dev *pdev, 591 - const struct pci_device_id *ent) 590 + static int agp_intel_i460_probe(struct pci_dev *pdev, 591 + const struct pci_device_id *ent) 592 592 { 593 593 struct agp_bridge_data *bridge; 594 594 u8 cap_ptr; ··· 637 637 .name = "agpgart-intel-i460", 638 638 .id_table = agp_intel_i460_pci_table, 639 639 .probe = agp_intel_i460_probe, 640 - .remove = __devexit_p(agp_intel_i460_remove), 640 + .remove = agp_intel_i460_remove, 641 641 }; 642 642 643 643 static int __init agp_intel_i460_init(void)
+3 -3
drivers/char/agp/intel-agp.c
··· 732 732 { 0, NULL, NULL } 733 733 }; 734 734 735 - static int __devinit agp_intel_probe(struct pci_dev *pdev, 736 - const struct pci_device_id *ent) 735 + static int agp_intel_probe(struct pci_dev *pdev, 736 + const struct pci_device_id *ent) 737 737 { 738 738 struct agp_bridge_data *bridge; 739 739 u8 cap_ptr = 0; ··· 912 912 .name = "agpgart-intel", 913 913 .id_table = agp_intel_pci_table, 914 914 .probe = agp_intel_probe, 915 - .remove = __devexit_p(agp_intel_remove), 915 + .remove = agp_intel_remove, 916 916 #ifdef CONFIG_PM 917 917 .resume = agp_intel_resume, 918 918 #endif
+2 -2
drivers/char/agp/nvidia-agp.c
··· 332 332 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 333 333 }; 334 334 335 - static int __devinit agp_nvidia_probe(struct pci_dev *pdev, 336 - const struct pci_device_id *ent) 335 + static int agp_nvidia_probe(struct pci_dev *pdev, 336 + const struct pci_device_id *ent) 337 337 { 338 338 struct agp_bridge_data *bridge; 339 339 u8 cap_ptr;
+1 -1
drivers/char/agp/sgi-agp.c
··· 270 270 .num_aperture_sizes = 1, 271 271 }; 272 272 273 - static int __devinit agp_sgi_init(void) 273 + static int agp_sgi_init(void) 274 274 { 275 275 unsigned int j; 276 276 struct tioca_kernel *info;
+2 -3
drivers/char/agp/sis-agp.c
··· 154 154 0 // terminator 155 155 }; 156 156 157 - static void __devinit sis_get_driver(struct agp_bridge_data *bridge) 157 + static void sis_get_driver(struct agp_bridge_data *bridge) 158 158 { 159 159 int i; 160 160 ··· 180 180 } 181 181 182 182 183 - static int __devinit agp_sis_probe(struct pci_dev *pdev, 184 - const struct pci_device_id *ent) 183 + static int agp_sis_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 185 184 { 186 185 struct agp_bridge_data *bridge; 187 186 u8 cap_ptr;
+2 -2
drivers/char/agp/sworks-agp.c
··· 445 445 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 446 446 }; 447 447 448 - static int __devinit agp_serverworks_probe(struct pci_dev *pdev, 449 - const struct pci_device_id *ent) 448 + static int agp_serverworks_probe(struct pci_dev *pdev, 449 + const struct pci_device_id *ent) 450 450 { 451 451 struct agp_bridge_data *bridge; 452 452 struct pci_dev *bridge_dev;
+2 -2
drivers/char/agp/uninorth-agp.c
··· 592 592 }, 593 593 }; 594 594 595 - static int __devinit agp_uninorth_probe(struct pci_dev *pdev, 596 - const struct pci_device_id *ent) 595 + static int agp_uninorth_probe(struct pci_dev *pdev, 596 + const struct pci_device_id *ent) 597 597 { 598 598 struct agp_device_ids *devs = uninorth_agp_device_ids; 599 599 struct agp_bridge_data *bridge;
+1 -2
drivers/char/agp/via-agp.c
··· 438 438 } 439 439 440 440 441 - static int __devinit agp_via_probe(struct pci_dev *pdev, 442 - const struct pci_device_id *ent) 441 + static int agp_via_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 443 442 { 444 443 struct agp_device_ids *devs = via_agp_device_ids; 445 444 struct agp_bridge_data *bridge;
+1 -1
drivers/char/hw_random/atmel-rng.c
··· 138 138 139 139 static struct platform_driver atmel_trng_driver = { 140 140 .probe = atmel_trng_probe, 141 - .remove = __devexit_p(atmel_trng_remove), 141 + .remove = atmel_trng_remove, 142 142 .driver = { 143 143 .name = "atmel-trng", 144 144 .owner = THIS_MODULE,
+2 -2
drivers/char/hw_random/bcm63xx-rng.c
··· 61 61 return 4; 62 62 } 63 63 64 - static int __devinit bcm63xx_rng_probe(struct platform_device *pdev) 64 + static int bcm63xx_rng_probe(struct platform_device *pdev) 65 65 { 66 66 struct resource *r; 67 67 struct clk *clk; ··· 161 161 162 162 static struct platform_driver bcm63xx_rng_driver = { 163 163 .probe = bcm63xx_rng_probe, 164 - .remove = __devexit_p(bcm63xx_rng_remove), 164 + .remove = bcm63xx_rng_remove, 165 165 .driver = { 166 166 .name = "bcm63xx-rng", 167 167 .owner = THIS_MODULE,
+2 -2
drivers/char/hw_random/exynos-rng.c
··· 101 101 return 4; 102 102 } 103 103 104 - static int __devinit exynos_rng_probe(struct platform_device *pdev) 104 + static int exynos_rng_probe(struct platform_device *pdev) 105 105 { 106 106 struct exynos_rng *exynos_rng; 107 107 ··· 172 172 .pm = &exynos_rng_pm_ops, 173 173 }, 174 174 .probe = exynos_rng_probe, 175 - .remove = __devexit_p(exynos_rng_remove), 175 + .remove = exynos_rng_remove, 176 176 }; 177 177 178 178 module_platform_driver(exynos_rng_driver);
+3 -3
drivers/char/hw_random/n2-drv.c
··· 611 611 schedule_delayed_work(&np->work, HZ * 2); 612 612 } 613 613 614 - static void __devinit n2rng_driver_version(void) 614 + static void n2rng_driver_version(void) 615 615 { 616 616 static int n2rng_version_printed; 617 617 ··· 620 620 } 621 621 622 622 static const struct of_device_id n2rng_match[]; 623 - static int __devinit n2rng_probe(struct platform_device *op) 623 + static int n2rng_probe(struct platform_device *op) 624 624 { 625 625 const struct of_device_id *match; 626 626 int multi_capable; ··· 767 767 .of_match_table = n2rng_match, 768 768 }, 769 769 .probe = n2rng_probe, 770 - .remove = __devexit_p(n2rng_remove), 770 + .remove = n2rng_remove, 771 771 }; 772 772 773 773 module_platform_driver(n2rng_driver);
+1 -1
drivers/char/hw_random/octeon-rng.c
··· 56 56 return sizeof(u32); 57 57 } 58 58 59 - static int __devinit octeon_rng_probe(struct platform_device *pdev) 59 + static int octeon_rng_probe(struct platform_device *pdev) 60 60 { 61 61 struct resource *res_ports; 62 62 struct resource *res_result;
+1 -1
drivers/char/hw_random/omap-rng.c
··· 104 104 .data_read = omap_rng_data_read, 105 105 }; 106 106 107 - static int __devinit omap_rng_probe(struct platform_device *pdev) 107 + static int omap_rng_probe(struct platform_device *pdev) 108 108 { 109 109 struct omap_rng_private_data *priv; 110 110 int ret;
+1 -1
drivers/char/hw_random/pasemi-rng.c
··· 94 94 .data_read = pasemi_rng_data_read, 95 95 }; 96 96 97 - static int __devinit rng_probe(struct platform_device *ofdev) 97 + static int rng_probe(struct platform_device *ofdev) 98 98 { 99 99 void __iomem *rng_regs; 100 100 struct device_node *rng_np = ofdev->dev.of_node;
+1 -1
drivers/char/hw_random/picoxcell-rng.c
··· 181 181 182 182 static struct platform_driver picoxcell_trng_driver = { 183 183 .probe = picoxcell_trng_probe, 184 - .remove = __devexit_p(picoxcell_trng_remove), 184 + .remove = picoxcell_trng_remove, 185 185 .driver = { 186 186 .name = "picoxcell-trng", 187 187 .owner = THIS_MODULE,
+1 -1
drivers/char/hw_random/ppc4xx-rng.c
··· 90 90 .data_read = ppc4xx_rng_data_read, 91 91 }; 92 92 93 - static int __devinit ppc4xx_rng_probe(struct platform_device *dev) 93 + static int ppc4xx_rng_probe(struct platform_device *dev) 94 94 { 95 95 void __iomem *rng_regs; 96 96 int err = 0;
+2 -2
drivers/char/hw_random/timeriomem-rng.c
··· 88 88 .priv = 0, 89 89 }; 90 90 91 - static int __devinit timeriomem_rng_probe(struct platform_device *pdev) 91 + static int timeriomem_rng_probe(struct platform_device *pdev) 92 92 { 93 93 struct resource *res; 94 94 int ret; ··· 146 146 .owner = THIS_MODULE, 147 147 }, 148 148 .probe = timeriomem_rng_probe, 149 - .remove = __devexit_p(timeriomem_rng_remove), 149 + .remove = timeriomem_rng_remove, 150 150 }; 151 151 152 152 module_platform_driver(timeriomem_rng_driver);
+1 -1
drivers/char/hw_random/virtio-rng.c
··· 147 147 .driver.owner = THIS_MODULE, 148 148 .id_table = id_table, 149 149 .probe = virtrng_probe, 150 - .remove = __devexit_p(virtrng_remove), 150 + .remove = virtrng_remove, 151 151 #ifdef CONFIG_PM 152 152 .freeze = virtrng_freeze, 153 153 .restore = virtrng_restore,
+3 -3
drivers/char/ipmi/ipmi_si_intf.c
··· 2243 2243 static struct pnp_driver ipmi_pnp_driver = { 2244 2244 .name = DEVICE_NAME, 2245 2245 .probe = ipmi_pnp_probe, 2246 - .remove = __devexit_p(ipmi_pnp_remove), 2246 + .remove = ipmi_pnp_remove, 2247 2247 .id_table = pnp_dev_table, 2248 2248 }; 2249 2249 #endif ··· 2546 2546 .name = DEVICE_NAME, 2547 2547 .id_table = ipmi_pci_devices, 2548 2548 .probe = ipmi_pci_probe, 2549 - .remove = __devexit_p(ipmi_pci_remove), 2549 + .remove = ipmi_pci_remove, 2550 2550 }; 2551 2551 #endif /* CONFIG_PCI */ 2552 2552 ··· 2661 2661 .of_match_table = ipmi_match, 2662 2662 }, 2663 2663 .probe = ipmi_probe, 2664 - .remove = __devexit_p(ipmi_remove), 2664 + .remove = ipmi_remove, 2665 2665 }; 2666 2666 2667 2667 static int wait_for_msg_done(struct smi_info *smi_info)
+1 -5
drivers/char/virtio_console.c
··· 2186 2186 #endif 2187 2187 }; 2188 2188 2189 - /* 2190 - * virtio_rproc_serial refers to __devinit function which causes 2191 - * section mismatch warnings. So use __refdata to silence warnings. 2192 - */ 2193 - static struct virtio_driver __refdata virtio_rproc_serial = { 2189 + static struct virtio_driver virtio_rproc_serial = { 2194 2190 .feature_table = rproc_serial_features, 2195 2191 .feature_table_size = ARRAY_SIZE(rproc_serial_features), 2196 2192 .driver.name = "virtio_rproc_serial",