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

i2c: remove __dev* attributes from subsystem

CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com> (for ocores and mux-gpio)
Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com> (for i2c-gpio)
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> (for puf3)
Acked-by: Barry Song <baohua.song@csr.com> (for sirf)
Reviewed-by: Jean Delvare <khali@linux-fr.org>
[wsa: Fixed "foo* bar" flaws while we are here]
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

authored by

Bill Pemberton and committed by
Wolfram Sang
0b255e92 a49f0d1e

+241 -247
+4 -4
drivers/i2c/busses/i2c-ali1535.c
··· 139 139 Note the differences between kernels with the old PCI BIOS interface and 140 140 newer kernels with the real PCI interface. In compat.h some things are 141 141 defined to make the transition easier. */ 142 - static int __devinit ali1535_setup(struct pci_dev *dev) 142 + static int ali1535_setup(struct pci_dev *dev) 143 143 { 144 144 int retval; 145 145 unsigned char temp; ··· 502 502 503 503 MODULE_DEVICE_TABLE(pci, ali1535_ids); 504 504 505 - static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id) 505 + static int ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id) 506 506 { 507 507 if (ali1535_setup(dev)) { 508 508 dev_warn(&dev->dev, ··· 518 518 return i2c_add_adapter(&ali1535_adapter); 519 519 } 520 520 521 - static void __devexit ali1535_remove(struct pci_dev *dev) 521 + static void ali1535_remove(struct pci_dev *dev) 522 522 { 523 523 i2c_del_adapter(&ali1535_adapter); 524 524 release_region(ali1535_smba, ALI1535_SMB_IOSIZE); ··· 528 528 .name = "ali1535_smbus", 529 529 .id_table = ali1535_ids, 530 530 .probe = ali1535_probe, 531 - .remove = __devexit_p(ali1535_remove), 531 + .remove = ali1535_remove, 532 532 }; 533 533 534 534 module_pci_driver(ali1535_driver);
+5 -5
drivers/i2c/busses/i2c-ali1563.c
··· 326 326 } 327 327 328 328 329 - static int __devinit ali1563_setup(struct pci_dev * dev) 329 + static int ali1563_setup(struct pci_dev *dev) 330 330 { 331 331 u16 ctrl; 332 332 ··· 390 390 .algo = &ali1563_algorithm, 391 391 }; 392 392 393 - static int __devinit ali1563_probe(struct pci_dev * dev, 394 - const struct pci_device_id * id_table) 393 + static int ali1563_probe(struct pci_dev *dev, 394 + const struct pci_device_id *id_table) 395 395 { 396 396 int error; 397 397 ··· 411 411 return error; 412 412 } 413 413 414 - static void __devexit ali1563_remove(struct pci_dev * dev) 414 + static void ali1563_remove(struct pci_dev *dev) 415 415 { 416 416 i2c_del_adapter(&ali1563_adapter); 417 417 ali1563_shutdown(dev); ··· 428 428 .name = "ali1563_smbus", 429 429 .id_table = ali1563_id_table, 430 430 .probe = ali1563_probe, 431 - .remove = __devexit_p(ali1563_remove), 431 + .remove = ali1563_remove, 432 432 }; 433 433 434 434 module_pci_driver(ali1563_pci_driver);
+4 -4
drivers/i2c/busses/i2c-ali15x3.c
··· 131 131 static struct pci_driver ali15x3_driver; 132 132 static unsigned short ali15x3_smba; 133 133 134 - static int __devinit ali15x3_setup(struct pci_dev *ALI15X3_dev) 134 + static int ali15x3_setup(struct pci_dev *ALI15X3_dev) 135 135 { 136 136 u16 a; 137 137 unsigned char temp; ··· 484 484 485 485 MODULE_DEVICE_TABLE (pci, ali15x3_ids); 486 486 487 - static int __devinit ali15x3_probe(struct pci_dev *dev, const struct pci_device_id *id) 487 + static int ali15x3_probe(struct pci_dev *dev, const struct pci_device_id *id) 488 488 { 489 489 if (ali15x3_setup(dev)) { 490 490 dev_err(&dev->dev, ··· 500 500 return i2c_add_adapter(&ali15x3_adapter); 501 501 } 502 502 503 - static void __devexit ali15x3_remove(struct pci_dev *dev) 503 + static void ali15x3_remove(struct pci_dev *dev) 504 504 { 505 505 i2c_del_adapter(&ali15x3_adapter); 506 506 release_region(ali15x3_smba, ALI15X3_SMB_IOSIZE); ··· 510 510 .name = "ali15x3_smbus", 511 511 .id_table = ali15x3_ids, 512 512 .probe = ali15x3_probe, 513 - .remove = __devexit_p(ali15x3_remove), 513 + .remove = ali15x3_remove, 514 514 }; 515 515 516 516 module_pci_driver(ali15x3_driver);
+3 -4
drivers/i2c/busses/i2c-amd756.c
··· 324 324 325 325 MODULE_DEVICE_TABLE (pci, amd756_ids); 326 326 327 - static int __devinit amd756_probe(struct pci_dev *pdev, 328 - const struct pci_device_id *id) 327 + static int amd756_probe(struct pci_dev *pdev, const struct pci_device_id *id) 329 328 { 330 329 int nforce = (id->driver_data == NFORCE); 331 330 int error; ··· 396 397 return error; 397 398 } 398 399 399 - static void __devexit amd756_remove(struct pci_dev *dev) 400 + static void amd756_remove(struct pci_dev *dev) 400 401 { 401 402 i2c_del_adapter(&amd756_smbus); 402 403 release_region(amd756_ioport, SMB_IOSIZE); ··· 406 407 .name = "amd756_smbus", 407 408 .id_table = amd756_ids, 408 409 .probe = amd756_probe, 409 - .remove = __devexit_p(amd756_remove), 410 + .remove = amd756_remove, 410 411 }; 411 412 412 413 module_pci_driver(amd756_driver);
+3 -4
drivers/i2c/busses/i2c-amd8111.c
··· 422 422 423 423 MODULE_DEVICE_TABLE (pci, amd8111_ids); 424 424 425 - static int __devinit amd8111_probe(struct pci_dev *dev, 426 - const struct pci_device_id *id) 425 + static int amd8111_probe(struct pci_dev *dev, const struct pci_device_id *id) 427 426 { 428 427 struct amd_smbus *smbus; 429 428 int error; ··· 474 475 return error; 475 476 } 476 477 477 - static void __devexit amd8111_remove(struct pci_dev *dev) 478 + static void amd8111_remove(struct pci_dev *dev) 478 479 { 479 480 struct amd_smbus *smbus = pci_get_drvdata(dev); 480 481 ··· 487 488 .name = "amd8111_smbus2", 488 489 .id_table = amd8111_ids, 489 490 .probe = amd8111_probe, 490 - .remove = __devexit_p(amd8111_remove), 491 + .remove = amd8111_remove, 491 492 }; 492 493 493 494 module_pci_driver(amd8111_driver);
+7 -7
drivers/i2c/busses/i2c-at91.c
··· 145 145 * Calculate symmetric clock as stated in datasheet: 146 146 * twi_clk = F_MAIN / (2 * (cdiv * (1 << ckdiv) + offset)) 147 147 */ 148 - static void __devinit at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk) 148 + static void at91_calc_twi_clock(struct at91_twi_dev *dev, int twi_clk) 149 149 { 150 150 int ckdiv, cdiv, div; 151 151 struct at91_twi_pdata *pdata = dev->pdata; ··· 604 604 #define atmel_twi_dt_ids NULL 605 605 #endif 606 606 607 - static bool __devinit filter(struct dma_chan *chan, void *slave) 607 + static bool filter(struct dma_chan *chan, void *slave) 608 608 { 609 609 struct at_dma_slave *sl = slave; 610 610 ··· 616 616 } 617 617 } 618 618 619 - static int __devinit at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr) 619 + static int at91_twi_configure_dma(struct at91_twi_dev *dev, u32 phy_addr) 620 620 { 621 621 int ret = 0; 622 622 struct at_dma_slave *sdata; ··· 688 688 return ret; 689 689 } 690 690 691 - static struct at91_twi_pdata * __devinit at91_twi_get_driver_data( 691 + static struct at91_twi_pdata *at91_twi_get_driver_data( 692 692 struct platform_device *pdev) 693 693 { 694 694 if (pdev->dev.of_node) { ··· 701 701 return (struct at91_twi_pdata *) platform_get_device_id(pdev)->driver_data; 702 702 } 703 703 704 - static int __devinit at91_twi_probe(struct platform_device *pdev) 704 + static int at91_twi_probe(struct platform_device *pdev) 705 705 { 706 706 struct at91_twi_dev *dev; 707 707 struct resource *mem; ··· 779 779 return 0; 780 780 } 781 781 782 - static int __devexit at91_twi_remove(struct platform_device *pdev) 782 + static int at91_twi_remove(struct platform_device *pdev) 783 783 { 784 784 struct at91_twi_dev *dev = platform_get_drvdata(pdev); 785 785 int rc; ··· 820 820 821 821 static struct platform_driver at91_twi_driver = { 822 822 .probe = at91_twi_probe, 823 - .remove = __devexit_p(at91_twi_remove), 823 + .remove = at91_twi_remove, 824 824 .id_table = at91_twi_devtypes, 825 825 .driver = { 826 826 .name = "at91_i2c",
+3 -3
drivers/i2c/busses/i2c-au1550.c
··· 313 313 * Prior to calling us, the 50MHz clock frequency and routing 314 314 * must have been set up for the PSC indicated by the adapter. 315 315 */ 316 - static int __devinit 316 + static int 317 317 i2c_au1550_probe(struct platform_device *pdev) 318 318 { 319 319 struct i2c_au1550_data *priv; ··· 372 372 return ret; 373 373 } 374 374 375 - static int __devexit i2c_au1550_remove(struct platform_device *pdev) 375 + static int i2c_au1550_remove(struct platform_device *pdev) 376 376 { 377 377 struct i2c_au1550_data *priv = platform_get_drvdata(pdev); 378 378 ··· 423 423 .pm = AU1XPSC_SMBUS_PMOPS, 424 424 }, 425 425 .probe = i2c_au1550_probe, 426 - .remove = __devexit_p(i2c_au1550_remove), 426 + .remove = i2c_au1550_remove, 427 427 }; 428 428 429 429 module_platform_driver(au1xpsc_smbus_driver);
+4 -4
drivers/i2c/busses/i2c-cpm.c
··· 426 426 .algo = &cpm_i2c_algo, 427 427 }; 428 428 429 - static int __devinit cpm_i2c_setup(struct cpm_i2c *cpm) 429 + static int cpm_i2c_setup(struct cpm_i2c *cpm) 430 430 { 431 431 struct platform_device *ofdev = cpm->ofdev; 432 432 const u32 *data; ··· 634 634 cpm_muram_free(cpm->i2c_addr); 635 635 } 636 636 637 - static int __devinit cpm_i2c_probe(struct platform_device *ofdev) 637 + static int cpm_i2c_probe(struct platform_device *ofdev) 638 638 { 639 639 int result, len; 640 640 struct cpm_i2c *cpm; ··· 688 688 return result; 689 689 } 690 690 691 - static int __devexit cpm_i2c_remove(struct platform_device *ofdev) 691 + static int cpm_i2c_remove(struct platform_device *ofdev) 692 692 { 693 693 struct cpm_i2c *cpm = dev_get_drvdata(&ofdev->dev); 694 694 ··· 716 716 717 717 static struct platform_driver cpm_i2c_driver = { 718 718 .probe = cpm_i2c_probe, 719 - .remove = __devexit_p(cpm_i2c_remove), 719 + .remove = cpm_i2c_remove, 720 720 .driver = { 721 721 .name = "fsl-i2c-cpm", 722 722 .owner = THIS_MODULE,
+3 -3
drivers/i2c/busses/i2c-designware-pcidrv.c
··· 207 207 return dev->controller->clk_khz; 208 208 } 209 209 210 - static int __devinit i2c_dw_pci_probe(struct pci_dev *pdev, 210 + static int i2c_dw_pci_probe(struct pci_dev *pdev, 211 211 const struct pci_device_id *id) 212 212 { 213 213 struct dw_i2c_dev *dev; ··· 328 328 return r; 329 329 } 330 330 331 - static void __devexit i2c_dw_pci_remove(struct pci_dev *pdev) 331 + static void i2c_dw_pci_remove(struct pci_dev *pdev) 332 332 { 333 333 struct dw_i2c_dev *dev = pci_get_drvdata(pdev); 334 334 ··· 368 368 .name = DRIVER_NAME, 369 369 .id_table = i2_designware_pci_ids, 370 370 .probe = i2c_dw_pci_probe, 371 - .remove = __devexit_p(i2c_dw_pci_remove), 371 + .remove = i2c_dw_pci_remove, 372 372 .driver = { 373 373 .pm = &i2c_dw_pm_ops, 374 374 },
+3 -3
drivers/i2c/busses/i2c-designware-platdrv.c
··· 50 50 return clk_get_rate(dev->clk)/1000; 51 51 } 52 52 53 - static int __devinit dw_i2c_probe(struct platform_device *pdev) 53 + static int dw_i2c_probe(struct platform_device *pdev) 54 54 { 55 55 struct dw_i2c_dev *dev; 56 56 struct i2c_adapter *adap; ··· 169 169 return r; 170 170 } 171 171 172 - static int __devexit dw_i2c_remove(struct platform_device *pdev) 172 + static int dw_i2c_remove(struct platform_device *pdev) 173 173 { 174 174 struct dw_i2c_dev *dev = platform_get_drvdata(pdev); 175 175 struct resource *mem; ··· 228 228 MODULE_ALIAS("platform:i2c_designware"); 229 229 230 230 static struct platform_driver dw_i2c_driver = { 231 - .remove = __devexit_p(dw_i2c_remove), 231 + .remove = dw_i2c_remove, 232 232 .driver = { 233 233 .name = "i2c_designware", 234 234 .owner = THIS_MODULE,
+3 -3
drivers/i2c/busses/i2c-eg20t.c
··· 758 758 iowrite32(BUFFER_MODE_INTR_DISBL, p + PCH_I2CBUFMSK); 759 759 } 760 760 761 - static int __devinit pch_i2c_probe(struct pci_dev *pdev, 761 + static int pch_i2c_probe(struct pci_dev *pdev, 762 762 const struct pci_device_id *id) 763 763 { 764 764 void __iomem *base_addr; ··· 851 851 return ret; 852 852 } 853 853 854 - static void __devexit pch_i2c_remove(struct pci_dev *pdev) 854 + static void pch_i2c_remove(struct pci_dev *pdev) 855 855 { 856 856 int i; 857 857 struct adapter_info *adap_info = pci_get_drvdata(pdev); ··· 948 948 .name = KBUILD_MODNAME, 949 949 .id_table = pch_pcidev_id, 950 950 .probe = pch_i2c_probe, 951 - .remove = __devexit_p(pch_i2c_remove), 951 + .remove = pch_i2c_remove, 952 952 .suspend = pch_i2c_suspend, 953 953 .resume = pch_i2c_resume 954 954 };
+4 -4
drivers/i2c/busses/i2c-elektor.c
··· 205 205 .name = "i2c-elektor", 206 206 }; 207 207 208 - static int __devinit elektor_match(struct device *dev, unsigned int id) 208 + static int elektor_match(struct device *dev, unsigned int id) 209 209 { 210 210 #ifdef __alpha__ 211 211 /* check to see we have memory mapped PCF8584 connected to the ··· 264 264 return 1; 265 265 } 266 266 267 - static int __devinit elektor_probe(struct device *dev, unsigned int id) 267 + static int elektor_probe(struct device *dev, unsigned int id) 268 268 { 269 269 init_waitqueue_head(&pcf_wait); 270 270 if (pcf_isa_init()) ··· 293 293 return -ENODEV; 294 294 } 295 295 296 - static int __devexit elektor_remove(struct device *dev, unsigned int id) 296 + static int elektor_remove(struct device *dev, unsigned int id) 297 297 { 298 298 i2c_del_adapter(&pcf_isa_ops); 299 299 ··· 316 316 static struct isa_driver i2c_elektor_driver = { 317 317 .match = elektor_match, 318 318 .probe = elektor_probe, 319 - .remove = __devexit_p(elektor_remove), 319 + .remove = elektor_remove, 320 320 .driver = { 321 321 .owner = THIS_MODULE, 322 322 .name = "i2c-elektor",
+4 -4
drivers/i2c/busses/i2c-gpio.c
··· 85 85 return gpio_get_value(pdata->scl_pin); 86 86 } 87 87 88 - static int __devinit of_i2c_gpio_probe(struct device_node *np, 88 + static int of_i2c_gpio_probe(struct device_node *np, 89 89 struct i2c_gpio_platform_data *pdata) 90 90 { 91 91 u32 reg; ··· 117 117 return 0; 118 118 } 119 119 120 - static int __devinit i2c_gpio_probe(struct platform_device *pdev) 120 + static int i2c_gpio_probe(struct platform_device *pdev) 121 121 { 122 122 struct i2c_gpio_private_data *priv; 123 123 struct i2c_gpio_platform_data *pdata; ··· 218 218 return ret; 219 219 } 220 220 221 - static int __devexit i2c_gpio_remove(struct platform_device *pdev) 221 + static int i2c_gpio_remove(struct platform_device *pdev) 222 222 { 223 223 struct i2c_gpio_private_data *priv; 224 224 struct i2c_gpio_platform_data *pdata; ··· 251 251 .of_match_table = of_match_ptr(i2c_gpio_dt_ids), 252 252 }, 253 253 .probe = i2c_gpio_probe, 254 - .remove = __devexit_p(i2c_gpio_remove), 254 + .remove = i2c_gpio_remove, 255 255 }; 256 256 257 257 static int __init i2c_gpio_init(void)
+3 -3
drivers/i2c/busses/i2c-highlander.c
··· 356 356 .functionality = highlander_i2c_func, 357 357 }; 358 358 359 - static int __devinit highlander_i2c_probe(struct platform_device *pdev) 359 + static int highlander_i2c_probe(struct platform_device *pdev) 360 360 { 361 361 struct highlander_i2c_dev *dev; 362 362 struct i2c_adapter *adap; ··· 441 441 return ret; 442 442 } 443 443 444 - static int __devexit highlander_i2c_remove(struct platform_device *pdev) 444 + static int highlander_i2c_remove(struct platform_device *pdev) 445 445 { 446 446 struct highlander_i2c_dev *dev = platform_get_drvdata(pdev); 447 447 ··· 465 465 }, 466 466 467 467 .probe = highlander_i2c_probe, 468 - .remove = __devexit_p(highlander_i2c_remove), 468 + .remove = highlander_i2c_remove, 469 469 }; 470 470 471 471 module_platform_driver(highlander_i2c_driver);
+3 -3
drivers/i2c/busses/i2c-hydra.c
··· 112 112 113 113 MODULE_DEVICE_TABLE (pci, hydra_ids); 114 114 115 - static int __devinit hydra_probe(struct pci_dev *dev, 115 + static int hydra_probe(struct pci_dev *dev, 116 116 const struct pci_device_id *id) 117 117 { 118 118 unsigned long base = pci_resource_start(dev, 0); ··· 139 139 return 0; 140 140 } 141 141 142 - static void __devexit hydra_remove(struct pci_dev *dev) 142 + static void hydra_remove(struct pci_dev *dev) 143 143 { 144 144 pdregw(hydra_bit_data.data, 0); /* clear SCLK_OE and SDAT_OE */ 145 145 i2c_del_adapter(&hydra_adap); ··· 153 153 .name = "hydra_smbus", 154 154 .id_table = hydra_ids, 155 155 .probe = hydra_probe, 156 - .remove = __devexit_p(hydra_remove), 156 + .remove = hydra_remove, 157 157 }; 158 158 159 159 module_pci_driver(hydra_driver);
+13 -15
drivers/i2c/busses/i2c-i801.c
··· 841 841 const char *i2c_type; 842 842 }; 843 843 844 - static struct dmi_onboard_device_info __devinitdata dmi_devices[] = { 844 + static const struct dmi_onboard_device_info dmi_devices[] = { 845 845 { "Syleus", DMI_DEV_TYPE_OTHER, 0x73, "fscsyl" }, 846 846 { "Hermes", DMI_DEV_TYPE_OTHER, 0x73, "fscher" }, 847 847 { "Hades", DMI_DEV_TYPE_OTHER, 0x73, "fschds" }, 848 848 }; 849 849 850 - static void __devinit dmi_check_onboard_device(u8 type, const char *name, 851 - struct i2c_adapter *adap) 850 + static void dmi_check_onboard_device(u8 type, const char *name, 851 + struct i2c_adapter *adap) 852 852 { 853 853 int i; 854 854 struct i2c_board_info info; ··· 871 871 /* We use our own function to check for onboard devices instead of 872 872 dmi_find_device() as some buggy BIOS's have the devices we are interested 873 873 in marked as disabled */ 874 - static void __devinit dmi_check_onboard_devices(const struct dmi_header *dm, 875 - void *adap) 874 + static void dmi_check_onboard_devices(const struct dmi_header *dm, void *adap) 876 875 { 877 876 int i, count; 878 877 ··· 900 901 } 901 902 902 903 /* Register optional slaves */ 903 - static void __devinit i801_probe_optional_slaves(struct i801_priv *priv) 904 + static void i801_probe_optional_slaves(struct i801_priv *priv) 904 905 { 905 906 /* Only register slaves on main SMBus channel */ 906 907 if (priv->features & FEATURE_IDF) ··· 920 921 } 921 922 #else 922 923 static void __init input_apanel_init(void) {} 923 - static void __devinit i801_probe_optional_slaves(struct i801_priv *priv) {} 924 + static void i801_probe_optional_slaves(struct i801_priv *priv) {} 924 925 #endif /* CONFIG_X86 && CONFIG_DMI */ 925 926 926 927 #if (defined CONFIG_I2C_MUX_GPIO || defined CONFIG_I2C_MUX_GPIO_MODULE) && \ ··· 943 944 .n_gpios = 2, 944 945 }; 945 946 946 - static struct dmi_system_id __devinitdata mux_dmi_table[] = { 947 + static const struct dmi_system_id mux_dmi_table[] = { 947 948 { 948 949 .matches = { 949 950 DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), ··· 1011 1012 }; 1012 1013 1013 1014 /* Setup multiplexing if needed */ 1014 - static int __devinit i801_add_mux(struct i801_priv *priv) 1015 + static int i801_add_mux(struct i801_priv *priv) 1015 1016 { 1016 1017 struct device *dev = &priv->adapter.dev; 1017 1018 const struct i801_mux_config *mux_config; ··· 1047 1048 return 0; 1048 1049 } 1049 1050 1050 - static void __devexit i801_del_mux(struct i801_priv *priv) 1051 + static void i801_del_mux(struct i801_priv *priv) 1051 1052 { 1052 1053 if (priv->mux_pdev) 1053 1054 platform_device_unregister(priv->mux_pdev); 1054 1055 } 1055 1056 1056 - static unsigned int __devinit i801_get_adapter_class(struct i801_priv *priv) 1057 + static unsigned int i801_get_adapter_class(struct i801_priv *priv) 1057 1058 { 1058 1059 const struct dmi_system_id *id; 1059 1060 const struct i801_mux_config *mux_config; ··· 1083 1084 } 1084 1085 #endif 1085 1086 1086 - static int __devinit i801_probe(struct pci_dev *dev, 1087 - const struct pci_device_id *id) 1087 + static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) 1088 1088 { 1089 1089 unsigned char temp; 1090 1090 int err, i; ··· 1224 1226 return err; 1225 1227 } 1226 1228 1227 - static void __devexit i801_remove(struct pci_dev *dev) 1229 + static void i801_remove(struct pci_dev *dev) 1228 1230 { 1229 1231 struct i801_priv *priv = pci_get_drvdata(dev); 1230 1232 ··· 1270 1272 .name = "i801_smbus", 1271 1273 .id_table = i801_ids, 1272 1274 .probe = i801_probe, 1273 - .remove = __devexit_p(i801_remove), 1275 + .remove = i801_remove, 1274 1276 .suspend = i801_suspend, 1275 1277 .resume = i801_resume, 1276 1278 };
+4 -4
drivers/i2c/busses/i2c-ibm_iic.c
··· 660 660 return (u8)((opb + 9) / 10 - 1); 661 661 } 662 662 663 - static int __devinit iic_request_irq(struct platform_device *ofdev, 663 + static int iic_request_irq(struct platform_device *ofdev, 664 664 struct ibm_iic_private *dev) 665 665 { 666 666 struct device_node *np = ofdev->dev.of_node; ··· 691 691 /* 692 692 * Register single IIC interface 693 693 */ 694 - static int __devinit iic_probe(struct platform_device *ofdev) 694 + static int iic_probe(struct platform_device *ofdev) 695 695 { 696 696 struct device_node *np = ofdev->dev.of_node; 697 697 struct ibm_iic_private *dev; ··· 781 781 /* 782 782 * Cleanup initialized IIC interface 783 783 */ 784 - static int __devexit iic_remove(struct platform_device *ofdev) 784 + static int iic_remove(struct platform_device *ofdev) 785 785 { 786 786 struct ibm_iic_private *dev = dev_get_drvdata(&ofdev->dev); 787 787 ··· 812 812 .of_match_table = ibm_iic_match, 813 813 }, 814 814 .probe = iic_probe, 815 - .remove = __devexit_p(iic_remove), 815 + .remove = iic_remove, 816 816 }; 817 817 818 818 module_platform_driver(ibm_iic_driver);
+3 -3
drivers/i2c/busses/i2c-intel-mid.c
··· 947 947 * 5. Call intel_mid_i2c_hwinit() for hardware initialization 948 948 * 6. Register I2C adapter in i2c-core 949 949 */ 950 - static int __devinit intel_mid_i2c_probe(struct pci_dev *dev, 950 + static int intel_mid_i2c_probe(struct pci_dev *dev, 951 951 const struct pci_device_id *id) 952 952 { 953 953 struct intel_mid_i2c_private *mrst; ··· 1079 1079 return err; 1080 1080 } 1081 1081 1082 - static void __devexit intel_mid_i2c_remove(struct pci_dev *dev) 1082 + static void intel_mid_i2c_remove(struct pci_dev *dev) 1083 1083 { 1084 1084 struct intel_mid_i2c_private *mrst = pci_get_drvdata(dev); 1085 1085 intel_mid_i2c_disable(&mrst->adap); ··· 1113 1113 .name = DRIVER_NAME, 1114 1114 .id_table = intel_mid_i2c_ids, 1115 1115 .probe = intel_mid_i2c_probe, 1116 - .remove = __devexit_p(intel_mid_i2c_remove), 1116 + .remove = intel_mid_i2c_remove, 1117 1117 }; 1118 1118 1119 1119 module_pci_driver(intel_mid_i2c_driver);
+3 -3
drivers/i2c/busses/i2c-isch.c
··· 249 249 .algo = &smbus_algorithm, 250 250 }; 251 251 252 - static int __devinit smbus_sch_probe(struct platform_device *dev) 252 + static int smbus_sch_probe(struct platform_device *dev) 253 253 { 254 254 struct resource *res; 255 255 int retval; ··· 284 284 return retval; 285 285 } 286 286 287 - static int __devexit smbus_sch_remove(struct platform_device *pdev) 287 + static int smbus_sch_remove(struct platform_device *pdev) 288 288 { 289 289 struct resource *res; 290 290 if (sch_smba) { ··· 303 303 .owner = THIS_MODULE, 304 304 }, 305 305 .probe = smbus_sch_probe, 306 - .remove = __devexit_p(smbus_sch_remove), 306 + .remove = smbus_sch_remove, 307 307 }; 308 308 309 309 module_platform_driver(smbus_sch_driver);
+19 -19
drivers/i2c/busses/i2c-mpc.c
··· 175 175 } 176 176 177 177 #if defined(CONFIG_PPC_MPC52xx) || defined(CONFIG_PPC_MPC512x) 178 - static const struct mpc_i2c_divider mpc_i2c_dividers_52xx[] __devinitconst = { 178 + static const struct mpc_i2c_divider mpc_i2c_dividers_52xx[] = { 179 179 {20, 0x20}, {22, 0x21}, {24, 0x22}, {26, 0x23}, 180 180 {28, 0x24}, {30, 0x01}, {32, 0x25}, {34, 0x02}, 181 181 {36, 0x26}, {40, 0x27}, {44, 0x04}, {48, 0x28}, ··· 196 196 {10240, 0x9d}, {12288, 0x9e}, {15360, 0x9f} 197 197 }; 198 198 199 - static int __devinit mpc_i2c_get_fdr_52xx(struct device_node *node, u32 clock, 199 + static int mpc_i2c_get_fdr_52xx(struct device_node *node, u32 clock, 200 200 int prescaler, u32 *real_clk) 201 201 { 202 202 const struct mpc_i2c_divider *div = NULL; ··· 230 230 return (int)div->fdr; 231 231 } 232 232 233 - static void __devinit mpc_i2c_setup_52xx(struct device_node *node, 233 + static void mpc_i2c_setup_52xx(struct device_node *node, 234 234 struct mpc_i2c *i2c, 235 235 u32 clock, u32 prescaler) 236 236 { ··· 252 252 fdr); 253 253 } 254 254 #else /* !(CONFIG_PPC_MPC52xx || CONFIG_PPC_MPC512x) */ 255 - static void __devinit mpc_i2c_setup_52xx(struct device_node *node, 255 + static void mpc_i2c_setup_52xx(struct device_node *node, 256 256 struct mpc_i2c *i2c, 257 257 u32 clock, u32 prescaler) 258 258 { ··· 260 260 #endif /* CONFIG_PPC_MPC52xx || CONFIG_PPC_MPC512x */ 261 261 262 262 #ifdef CONFIG_PPC_MPC512x 263 - static void __devinit mpc_i2c_setup_512x(struct device_node *node, 263 + static void mpc_i2c_setup_512x(struct device_node *node, 264 264 struct mpc_i2c *i2c, 265 265 u32 clock, u32 prescaler) 266 266 { ··· 288 288 mpc_i2c_setup_52xx(node, i2c, clock, prescaler); 289 289 } 290 290 #else /* CONFIG_PPC_MPC512x */ 291 - static void __devinit mpc_i2c_setup_512x(struct device_node *node, 291 + static void mpc_i2c_setup_512x(struct device_node *node, 292 292 struct mpc_i2c *i2c, 293 293 u32 clock, u32 prescaler) 294 294 { ··· 296 296 #endif /* CONFIG_PPC_MPC512x */ 297 297 298 298 #ifdef CONFIG_FSL_SOC 299 - static const struct mpc_i2c_divider mpc_i2c_dividers_8xxx[] __devinitconst = { 299 + static const struct mpc_i2c_divider mpc_i2c_dividers_8xxx[] = { 300 300 {160, 0x0120}, {192, 0x0121}, {224, 0x0122}, {256, 0x0123}, 301 301 {288, 0x0100}, {320, 0x0101}, {352, 0x0601}, {384, 0x0102}, 302 302 {416, 0x0602}, {448, 0x0126}, {480, 0x0103}, {512, 0x0127}, ··· 316 316 {49152, 0x011e}, {61440, 0x011f} 317 317 }; 318 318 319 - static u32 __devinit mpc_i2c_get_sec_cfg_8xxx(void) 319 + static u32 mpc_i2c_get_sec_cfg_8xxx(void) 320 320 { 321 321 struct device_node *node = NULL; 322 322 u32 __iomem *reg; ··· 345 345 return val; 346 346 } 347 347 348 - static int __devinit mpc_i2c_get_fdr_8xxx(struct device_node *node, u32 clock, 348 + static int mpc_i2c_get_fdr_8xxx(struct device_node *node, u32 clock, 349 349 u32 prescaler, u32 *real_clk) 350 350 { 351 351 const struct mpc_i2c_divider *div = NULL; ··· 383 383 return div ? (int)div->fdr : -EINVAL; 384 384 } 385 385 386 - static void __devinit mpc_i2c_setup_8xxx(struct device_node *node, 386 + static void mpc_i2c_setup_8xxx(struct device_node *node, 387 387 struct mpc_i2c *i2c, 388 388 u32 clock, u32 prescaler) 389 389 { ··· 408 408 } 409 409 410 410 #else /* !CONFIG_FSL_SOC */ 411 - static void __devinit mpc_i2c_setup_8xxx(struct device_node *node, 411 + static void mpc_i2c_setup_8xxx(struct device_node *node, 412 412 struct mpc_i2c *i2c, 413 413 u32 clock, u32 prescaler) 414 414 { ··· 615 615 }; 616 616 617 617 static const struct of_device_id mpc_i2c_of_match[]; 618 - static int __devinit fsl_i2c_probe(struct platform_device *op) 618 + static int fsl_i2c_probe(struct platform_device *op) 619 619 { 620 620 const struct of_device_id *match; 621 621 struct mpc_i2c *i2c; ··· 706 706 return result; 707 707 }; 708 708 709 - static int __devexit fsl_i2c_remove(struct platform_device *op) 709 + static int fsl_i2c_remove(struct platform_device *op) 710 710 { 711 711 struct mpc_i2c *i2c = dev_get_drvdata(&op->dev); 712 712 ··· 746 746 SIMPLE_DEV_PM_OPS(mpc_i2c_pm_ops, mpc_i2c_suspend, mpc_i2c_resume); 747 747 #endif 748 748 749 - static const struct mpc_i2c_data mpc_i2c_data_512x __devinitdata = { 749 + static const struct mpc_i2c_data mpc_i2c_data_512x = { 750 750 .setup = mpc_i2c_setup_512x, 751 751 }; 752 752 753 - static const struct mpc_i2c_data mpc_i2c_data_52xx __devinitdata = { 753 + static const struct mpc_i2c_data mpc_i2c_data_52xx = { 754 754 .setup = mpc_i2c_setup_52xx, 755 755 }; 756 756 757 - static const struct mpc_i2c_data mpc_i2c_data_8313 __devinitdata = { 757 + static const struct mpc_i2c_data mpc_i2c_data_8313 = { 758 758 .setup = mpc_i2c_setup_8xxx, 759 759 }; 760 760 761 - static const struct mpc_i2c_data mpc_i2c_data_8543 __devinitdata = { 761 + static const struct mpc_i2c_data mpc_i2c_data_8543 = { 762 762 .setup = mpc_i2c_setup_8xxx, 763 763 .prescaler = 2, 764 764 }; 765 765 766 - static const struct mpc_i2c_data mpc_i2c_data_8544 __devinitdata = { 766 + static const struct mpc_i2c_data mpc_i2c_data_8544 = { 767 767 .setup = mpc_i2c_setup_8xxx, 768 768 .prescaler = 3, 769 769 }; ··· 785 785 /* Structure for a device driver */ 786 786 static struct platform_driver mpc_i2c_driver = { 787 787 .probe = fsl_i2c_probe, 788 - .remove = __devexit_p(fsl_i2c_remove), 788 + .remove = fsl_i2c_remove, 789 789 .driver = { 790 790 .owner = THIS_MODULE, 791 791 .name = DRV_NAME,
+9 -9
drivers/i2c/busses/i2c-mv64xxx.c
··· 495 495 * 496 496 ***************************************************************************** 497 497 */ 498 - static int __devinit 498 + static int 499 499 mv64xxx_i2c_map_regs(struct platform_device *pd, 500 500 struct mv64xxx_i2c_data *drv_data) 501 501 { ··· 530 530 } 531 531 532 532 #ifdef CONFIG_OF 533 - static int __devinit 533 + static int 534 534 mv64xxx_calc_freq(const int tclk, const int n, const int m) 535 535 { 536 536 return tclk / (10 * (m + 1) * (2 << n)); 537 537 } 538 538 539 - static bool __devinit 539 + static bool 540 540 mv64xxx_find_baud_factors(const u32 req_freq, const u32 tclk, u32 *best_n, 541 541 u32 *best_m) 542 542 { ··· 560 560 return true; 561 561 } 562 562 563 - static int __devinit 563 + static int 564 564 mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, 565 565 struct device_node *np) 566 566 { ··· 597 597 #endif 598 598 } 599 599 #else /* CONFIG_OF */ 600 - static int __devinit 600 + static int 601 601 mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data, 602 602 struct device_node *np) 603 603 { ··· 605 605 } 606 606 #endif /* CONFIG_OF */ 607 607 608 - static int __devinit 608 + static int 609 609 mv64xxx_i2c_probe(struct platform_device *pd) 610 610 { 611 611 struct mv64xxx_i2c_data *drv_data; ··· 697 697 return rc; 698 698 } 699 699 700 - static int __devexit 700 + static int 701 701 mv64xxx_i2c_remove(struct platform_device *dev) 702 702 { 703 703 struct mv64xxx_i2c_data *drv_data = platform_get_drvdata(dev); ··· 718 718 return rc; 719 719 } 720 720 721 - static const struct of_device_id mv64xxx_i2c_of_match_table[] __devinitdata = { 721 + static const struct of_device_id mv64xxx_i2c_of_match_table[] = { 722 722 { .compatible = "marvell,mv64xxx-i2c", }, 723 723 {} 724 724 }; ··· 726 726 727 727 static struct platform_driver mv64xxx_i2c_driver = { 728 728 .probe = mv64xxx_i2c_probe, 729 - .remove = __devexit_p(mv64xxx_i2c_remove), 729 + .remove = mv64xxx_i2c_remove, 730 730 .driver = { 731 731 .owner = THIS_MODULE, 732 732 .name = MV64XXX_I2C_CTLR_NAME,
+3 -3
drivers/i2c/busses/i2c-mxs.c
··· 432 432 return 0; 433 433 } 434 434 435 - static int __devinit mxs_i2c_probe(struct platform_device *pdev) 435 + static int mxs_i2c_probe(struct platform_device *pdev) 436 436 { 437 437 struct device *dev = &pdev->dev; 438 438 struct mxs_i2c_dev *i2c; ··· 515 515 return 0; 516 516 } 517 517 518 - static int __devexit mxs_i2c_remove(struct platform_device *pdev) 518 + static int mxs_i2c_remove(struct platform_device *pdev) 519 519 { 520 520 struct mxs_i2c_dev *i2c = platform_get_drvdata(pdev); 521 521 int ret; ··· 546 546 .owner = THIS_MODULE, 547 547 .of_match_table = mxs_i2c_dt_ids, 548 548 }, 549 - .remove = __devexit_p(mxs_i2c_remove), 549 + .remove = mxs_i2c_remove, 550 550 }; 551 551 552 552 static int __init mxs_i2c_init(void)
+6 -6
drivers/i2c/busses/i2c-nforce2.c
··· 117 117 #define MAX_TIMEOUT 100 118 118 119 119 /* We disable the second SMBus channel on these boards */ 120 - static struct dmi_system_id __devinitdata nforce2_dmi_blacklist2[] = { 120 + static const struct dmi_system_id nforce2_dmi_blacklist2[] = { 121 121 { 122 122 .ident = "DFI Lanparty NF4 Expert", 123 123 .matches = { ··· 330 330 MODULE_DEVICE_TABLE (pci, nforce2_ids); 331 331 332 332 333 - static int __devinit nforce2_probe_smb (struct pci_dev *dev, int bar, 334 - int alt_reg, struct nforce2_smbus *smbus, const char *name) 333 + static int nforce2_probe_smb(struct pci_dev *dev, int bar, int alt_reg, 334 + struct nforce2_smbus *smbus, const char *name) 335 335 { 336 336 int error; 337 337 ··· 382 382 } 383 383 384 384 385 - static int __devinit nforce2_probe(struct pci_dev *dev, const struct pci_device_id *id) 385 + static int nforce2_probe(struct pci_dev *dev, const struct pci_device_id *id) 386 386 { 387 387 struct nforce2_smbus *smbuses; 388 388 int res1, res2; ··· 430 430 } 431 431 432 432 433 - static void __devexit nforce2_remove(struct pci_dev *dev) 433 + static void nforce2_remove(struct pci_dev *dev) 434 434 { 435 435 struct nforce2_smbus *smbuses = pci_get_drvdata(dev); 436 436 ··· 450 450 .name = "nForce2_smbus", 451 451 .id_table = nforce2_ids, 452 452 .probe = nforce2_probe, 453 - .remove = __devexit_p(nforce2_remove), 453 + .remove = nforce2_remove, 454 454 }; 455 455 456 456 module_pci_driver(nforce2_driver);
+3 -3
drivers/i2c/busses/i2c-nuc900.c
··· 518 518 * called by the bus driver when a suitable device is found 519 519 */ 520 520 521 - static int __devinit nuc900_i2c_probe(struct platform_device *pdev) 521 + static int nuc900_i2c_probe(struct platform_device *pdev) 522 522 { 523 523 struct nuc900_i2c *i2c; 524 524 struct nuc900_platform_i2c *pdata; ··· 663 663 * called when device is removed from the bus 664 664 */ 665 665 666 - static int __devexit nuc900_i2c_remove(struct platform_device *pdev) 666 + static int nuc900_i2c_remove(struct platform_device *pdev) 667 667 { 668 668 struct nuc900_i2c *i2c = platform_get_drvdata(pdev); 669 669 ··· 684 684 685 685 static struct platform_driver nuc900_i2c_driver = { 686 686 .probe = nuc900_i2c_probe, 687 - .remove = __devexit_p(nuc900_i2c_remove), 687 + .remove = nuc900_i2c_remove, 688 688 .driver = { 689 689 .owner = THIS_MODULE, 690 690 .name = "nuc900-i2c0",
+3 -3
drivers/i2c/busses/i2c-ocores.c
··· 343 343 #define ocores_i2c_of_probe(pdev,i2c) -ENODEV 344 344 #endif 345 345 346 - static int __devinit ocores_i2c_probe(struct platform_device *pdev) 346 + static int ocores_i2c_probe(struct platform_device *pdev) 347 347 { 348 348 struct ocores_i2c *i2c; 349 349 struct ocores_i2c_platform_data *pdata; ··· 441 441 return 0; 442 442 } 443 443 444 - static int __devexit ocores_i2c_remove(struct platform_device *pdev) 444 + static int ocores_i2c_remove(struct platform_device *pdev) 445 445 { 446 446 struct ocores_i2c *i2c = platform_get_drvdata(pdev); 447 447 ··· 485 485 486 486 static struct platform_driver ocores_i2c_driver = { 487 487 .probe = ocores_i2c_probe, 488 - .remove = __devexit_p(ocores_i2c_remove), 488 + .remove = ocores_i2c_remove, 489 489 .driver = { 490 490 .owner = THIS_MODULE, 491 491 .name = "ocores-i2c",
+5 -5
drivers/i2c/busses/i2c-octeon.c
··· 446 446 /** 447 447 * octeon_i2c_setclock - Calculate and set clock divisors. 448 448 */ 449 - static int __devinit octeon_i2c_setclock(struct octeon_i2c *i2c) 449 + static int octeon_i2c_setclock(struct octeon_i2c *i2c) 450 450 { 451 451 int tclk, thp_base, inc, thp_idx, mdiv_idx, ndiv_idx, foscl, diff; 452 452 int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000; ··· 489 489 return 0; 490 490 } 491 491 492 - static int __devinit octeon_i2c_initlowlevel(struct octeon_i2c *i2c) 492 + static int octeon_i2c_initlowlevel(struct octeon_i2c *i2c) 493 493 { 494 494 u8 status; 495 495 int tries; ··· 510 510 return -EIO; 511 511 } 512 512 513 - static int __devinit octeon_i2c_probe(struct platform_device *pdev) 513 + static int octeon_i2c_probe(struct platform_device *pdev) 514 514 { 515 515 int irq, result = 0; 516 516 struct octeon_i2c *i2c; ··· 609 609 return result; 610 610 }; 611 611 612 - static int __devexit octeon_i2c_remove(struct platform_device *pdev) 612 + static int octeon_i2c_remove(struct platform_device *pdev) 613 613 { 614 614 struct octeon_i2c *i2c = platform_get_drvdata(pdev); 615 615 ··· 628 628 629 629 static struct platform_driver octeon_i2c_driver = { 630 630 .probe = octeon_i2c_probe, 631 - .remove = __devexit_p(octeon_i2c_remove), 631 + .remove = octeon_i2c_remove, 632 632 .driver = { 633 633 .owner = THIS_MODULE, 634 634 .name = DRV_NAME,
+3 -3
drivers/i2c/busses/i2c-omap.c
··· 1069 1069 #define OMAP_I2C_SCHEME_0 0 1070 1070 #define OMAP_I2C_SCHEME_1 1 1071 1071 1072 - static int __devinit 1072 + static int 1073 1073 omap_i2c_probe(struct platform_device *pdev) 1074 1074 { 1075 1075 struct omap_i2c_dev *dev; ··· 1267 1267 return r; 1268 1268 } 1269 1269 1270 - static int __devexit omap_i2c_remove(struct platform_device *pdev) 1270 + static int omap_i2c_remove(struct platform_device *pdev) 1271 1271 { 1272 1272 struct omap_i2c_dev *dev = platform_get_drvdata(pdev); 1273 1273 int ret; ··· 1333 1333 1334 1334 static struct platform_driver omap_i2c_driver = { 1335 1335 .probe = omap_i2c_probe, 1336 - .remove = __devexit_p(omap_i2c_remove), 1336 + .remove = omap_i2c_remove, 1337 1337 .driver = { 1338 1338 .name = "omap_i2c", 1339 1339 .owner = THIS_MODULE,
+3 -3
drivers/i2c/busses/i2c-parport-light.c
··· 135 135 .port = PORT_CTRL, 136 136 }; 137 137 138 - static int __devinit i2c_parport_probe(struct platform_device *pdev) 138 + static int i2c_parport_probe(struct platform_device *pdev) 139 139 { 140 140 int err; 141 141 ··· 169 169 return 0; 170 170 } 171 171 172 - static int __devexit i2c_parport_remove(struct platform_device *pdev) 172 + static int i2c_parport_remove(struct platform_device *pdev) 173 173 { 174 174 if (ara) { 175 175 line_set(0, &parport_ctrl_irq); ··· 191 191 .name = DRVNAME, 192 192 }, 193 193 .probe = i2c_parport_probe, 194 - .remove = __devexit_p(i2c_parport_remove), 194 + .remove = i2c_parport_remove, 195 195 }; 196 196 197 197 static int __init i2c_parport_device_add(u16 address)
+3 -3
drivers/i2c/busses/i2c-pasemi.c
··· 340 340 .functionality = pasemi_smb_func, 341 341 }; 342 342 343 - static int __devinit pasemi_smb_probe(struct pci_dev *dev, 343 + static int pasemi_smb_probe(struct pci_dev *dev, 344 344 const struct pci_device_id *id) 345 345 { 346 346 struct pasemi_smbus *smbus; ··· 392 392 return error; 393 393 } 394 394 395 - static void __devexit pasemi_smb_remove(struct pci_dev *dev) 395 + static void pasemi_smb_remove(struct pci_dev *dev) 396 396 { 397 397 struct pasemi_smbus *smbus = pci_get_drvdata(dev); 398 398 ··· 412 412 .name = "i2c-pasemi", 413 413 .id_table = pasemi_smb_ids, 414 414 .probe = pasemi_smb_probe, 415 - .remove = __devexit_p(pasemi_smb_remove), 415 + .remove = pasemi_smb_remove, 416 416 }; 417 417 418 418 module_pci_driver(pasemi_smb_driver);
+4 -4
drivers/i2c/busses/i2c-pca-isa.c
··· 119 119 .timeout = HZ, 120 120 }; 121 121 122 - static int __devinit pca_isa_match(struct device *dev, unsigned int id) 122 + static int pca_isa_match(struct device *dev, unsigned int id) 123 123 { 124 124 int match = base != 0; 125 125 ··· 132 132 return match; 133 133 } 134 134 135 - static int __devinit pca_isa_probe(struct device *dev, unsigned int id) 135 + static int pca_isa_probe(struct device *dev, unsigned int id) 136 136 { 137 137 init_waitqueue_head(&pca_wait); 138 138 ··· 174 174 return -ENODEV; 175 175 } 176 176 177 - static int __devexit pca_isa_remove(struct device *dev, unsigned int id) 177 + static int pca_isa_remove(struct device *dev, unsigned int id) 178 178 { 179 179 i2c_del_adapter(&pca_isa_ops); 180 180 ··· 190 190 static struct isa_driver pca_isa_driver = { 191 191 .match = pca_isa_match, 192 192 .probe = pca_isa_probe, 193 - .remove = __devexit_p(pca_isa_remove), 193 + .remove = pca_isa_remove, 194 194 .driver = { 195 195 .owner = THIS_MODULE, 196 196 .name = DRIVER,
+3 -3
drivers/i2c/busses/i2c-pca-platform.c
··· 131 131 } 132 132 133 133 134 - static int __devinit i2c_pca_pf_probe(struct platform_device *pdev) 134 + static int i2c_pca_pf_probe(struct platform_device *pdev) 135 135 { 136 136 struct i2c_pca_pf_data *i2c; 137 137 struct resource *res; ··· 257 257 return ret; 258 258 } 259 259 260 - static int __devexit i2c_pca_pf_remove(struct platform_device *pdev) 260 + static int i2c_pca_pf_remove(struct platform_device *pdev) 261 261 { 262 262 struct i2c_pca_pf_data *i2c = platform_get_drvdata(pdev); 263 263 platform_set_drvdata(pdev, NULL); ··· 279 279 280 280 static struct platform_driver i2c_pca_pf_driver = { 281 281 .probe = i2c_pca_pf_probe, 282 - .remove = __devexit_p(i2c_pca_pf_remove), 282 + .remove = i2c_pca_pf_remove, 283 283 .driver = { 284 284 .name = "i2c-pca-platform", 285 285 .owner = THIS_MODULE,
+15 -17
drivers/i2c/busses/i2c-piix4.c
··· 99 99 static int srvrworks_csb5_delay; 100 100 static struct pci_driver piix4_driver; 101 101 102 - static struct dmi_system_id __devinitdata piix4_dmi_blacklist[] = { 102 + static const struct dmi_system_id piix4_dmi_blacklist[] = { 103 103 { 104 104 .ident = "Sapphire AM2RD790", 105 105 .matches = { ··· 119 119 120 120 /* The IBM entry is in a separate table because we only check it 121 121 on Intel-based systems */ 122 - static struct dmi_system_id __devinitdata piix4_dmi_ibm[] = { 122 + static const struct dmi_system_id piix4_dmi_ibm[] = { 123 123 { 124 124 .ident = "IBM", 125 125 .matches = { DMI_MATCH(DMI_SYS_VENDOR, "IBM"), }, ··· 131 131 unsigned short smba; 132 132 }; 133 133 134 - static int __devinit piix4_setup(struct pci_dev *PIIX4_dev, 135 - const struct pci_device_id *id) 134 + static int piix4_setup(struct pci_dev *PIIX4_dev, 135 + const struct pci_device_id *id) 136 136 { 137 137 unsigned char temp; 138 138 unsigned short piix4_smba; ··· 230 230 return piix4_smba; 231 231 } 232 232 233 - static int __devinit piix4_setup_sb800(struct pci_dev *PIIX4_dev, 234 - const struct pci_device_id *id) 233 + static int piix4_setup_sb800(struct pci_dev *PIIX4_dev, 234 + const struct pci_device_id *id) 235 235 { 236 236 unsigned short piix4_smba; 237 237 unsigned short smba_idx = 0xcd6; ··· 294 294 return piix4_smba; 295 295 } 296 296 297 - static int __devinit piix4_setup_aux(struct pci_dev *PIIX4_dev, 298 - const struct pci_device_id *id, 299 - unsigned short base_reg_addr) 297 + static int piix4_setup_aux(struct pci_dev *PIIX4_dev, 298 + const struct pci_device_id *id, 299 + unsigned short base_reg_addr) 300 300 { 301 301 /* Set up auxiliary SMBus controllers found on some 302 302 * AMD chipsets e.g. SP5100 (SB700 derivative) */ ··· 540 540 static struct i2c_adapter *piix4_main_adapter; 541 541 static struct i2c_adapter *piix4_aux_adapter; 542 542 543 - static int __devinit piix4_add_adapter(struct pci_dev *dev, 544 - unsigned short smba, 545 - struct i2c_adapter **padap) 543 + static int piix4_add_adapter(struct pci_dev *dev, unsigned short smba, 544 + struct i2c_adapter **padap) 546 545 { 547 546 struct i2c_adapter *adap; 548 547 struct i2c_piix4_adapdata *adapdata; ··· 587 588 return 0; 588 589 } 589 590 590 - static int __devinit piix4_probe(struct pci_dev *dev, 591 - const struct pci_device_id *id) 591 + static int piix4_probe(struct pci_dev *dev, const struct pci_device_id *id) 592 592 { 593 593 int retval; 594 594 ··· 624 626 return 0; 625 627 } 626 628 627 - static void __devexit piix4_adap_remove(struct i2c_adapter *adap) 629 + static void piix4_adap_remove(struct i2c_adapter *adap) 628 630 { 629 631 struct i2c_piix4_adapdata *adapdata = i2c_get_adapdata(adap); 630 632 ··· 636 638 } 637 639 } 638 640 639 - static void __devexit piix4_remove(struct pci_dev *dev) 641 + static void piix4_remove(struct pci_dev *dev) 640 642 { 641 643 if (piix4_main_adapter) { 642 644 piix4_adap_remove(piix4_main_adapter); ··· 653 655 .name = "piix4_smbus", 654 656 .id_table = piix4_ids, 655 657 .probe = piix4_probe, 656 - .remove = __devexit_p(piix4_remove), 658 + .remove = piix4_remove, 657 659 }; 658 660 659 661 module_pci_driver(piix4_driver);
+3 -3
drivers/i2c/busses/i2c-pmcmsp.c
··· 270 270 /* 271 271 * Probe for and register the device and return 0 if there is one. 272 272 */ 273 - static int __devinit pmcmsptwi_probe(struct platform_device *pldev) 273 + static int pmcmsptwi_probe(struct platform_device *pldev) 274 274 { 275 275 struct resource *res; 276 276 int rc = -ENODEV; ··· 368 368 /* 369 369 * Release the device and return 0 if there is one. 370 370 */ 371 - static int __devexit pmcmsptwi_remove(struct platform_device *pldev) 371 + static int pmcmsptwi_remove(struct platform_device *pldev) 372 372 { 373 373 struct resource *res; 374 374 ··· 628 628 629 629 static struct platform_driver pmcmsptwi_driver = { 630 630 .probe = pmcmsptwi_probe, 631 - .remove = __devexit_p(pmcmsptwi_remove), 631 + .remove = pmcmsptwi_remove, 632 632 .driver = { 633 633 .name = DRV_NAME, 634 634 .owner = THIS_MODULE,
+3 -3
drivers/i2c/busses/i2c-pnx.c
··· 619 619 #define PNX_I2C_PM NULL 620 620 #endif 621 621 622 - static int __devinit i2c_pnx_probe(struct platform_device *pdev) 622 + static int i2c_pnx_probe(struct platform_device *pdev) 623 623 { 624 624 unsigned long tmp; 625 625 int ret = 0; ··· 765 765 return ret; 766 766 } 767 767 768 - static int __devexit i2c_pnx_remove(struct platform_device *pdev) 768 + static int i2c_pnx_remove(struct platform_device *pdev) 769 769 { 770 770 struct i2c_pnx_algo_data *alg_data = platform_get_drvdata(pdev); 771 771 ··· 797 797 .pm = PNX_I2C_PM, 798 798 }, 799 799 .probe = i2c_pnx_probe, 800 - .remove = __devexit_p(i2c_pnx_remove), 800 + .remove = i2c_pnx_remove, 801 801 }; 802 802 803 803 static int __init i2c_adap_pnx_init(void)
+8 -8
drivers/i2c/busses/i2c-powermac.c
··· 210 210 }; 211 211 212 212 213 - static int __devexit i2c_powermac_remove(struct platform_device *dev) 213 + static int i2c_powermac_remove(struct platform_device *dev) 214 214 { 215 215 struct i2c_adapter *adapter = platform_get_drvdata(dev); 216 216 int rc; ··· 227 227 return 0; 228 228 } 229 229 230 - static u32 __devinit i2c_powermac_get_addr(struct i2c_adapter *adap, 230 + static u32 i2c_powermac_get_addr(struct i2c_adapter *adap, 231 231 struct pmac_i2c_bus *bus, 232 232 struct device_node *node) 233 233 { ··· 255 255 return 0xffffffff; 256 256 } 257 257 258 - static void __devinit i2c_powermac_create_one(struct i2c_adapter *adap, 258 + static void i2c_powermac_create_one(struct i2c_adapter *adap, 259 259 const char *type, 260 260 u32 addr) 261 261 { ··· 271 271 type); 272 272 } 273 273 274 - static void __devinit i2c_powermac_add_missing(struct i2c_adapter *adap, 274 + static void i2c_powermac_add_missing(struct i2c_adapter *adap, 275 275 struct pmac_i2c_bus *bus, 276 276 bool found_onyx) 277 277 { ··· 297 297 } 298 298 } 299 299 300 - static bool __devinit i2c_powermac_get_type(struct i2c_adapter *adap, 300 + static bool i2c_powermac_get_type(struct i2c_adapter *adap, 301 301 struct device_node *node, 302 302 u32 addr, char *type, int type_size) 303 303 { ··· 336 336 return false; 337 337 } 338 338 339 - static void __devinit i2c_powermac_register_devices(struct i2c_adapter *adap, 339 + static void i2c_powermac_register_devices(struct i2c_adapter *adap, 340 340 struct pmac_i2c_bus *bus) 341 341 { 342 342 struct i2c_client *newdev; ··· 403 403 i2c_powermac_add_missing(adap, bus, found_onyx); 404 404 } 405 405 406 - static int __devinit i2c_powermac_probe(struct platform_device *dev) 406 + static int i2c_powermac_probe(struct platform_device *dev) 407 407 { 408 408 struct pmac_i2c_bus *bus = dev->dev.platform_data; 409 409 struct device_node *parent = NULL; ··· 467 467 468 468 static struct platform_driver i2c_powermac_driver = { 469 469 .probe = i2c_powermac_probe, 470 - .remove = __devexit_p(i2c_powermac_remove), 470 + .remove = i2c_powermac_remove, 471 471 .driver = { 472 472 .name = "i2c-powermac", 473 473 .bus = &platform_bus_type,
+3 -3
drivers/i2c/busses/i2c-puv3.c
··· 184 184 /* 185 185 * Main initialization routine. 186 186 */ 187 - static int __devinit puv3_i2c_probe(struct platform_device *pdev) 187 + static int puv3_i2c_probe(struct platform_device *pdev) 188 188 { 189 189 struct i2c_adapter *adapter; 190 190 struct resource *mem; ··· 231 231 return rc; 232 232 } 233 233 234 - static int __devexit puv3_i2c_remove(struct platform_device *pdev) 234 + static int puv3_i2c_remove(struct platform_device *pdev) 235 235 { 236 236 struct i2c_adapter *adapter = platform_get_drvdata(pdev); 237 237 struct resource *mem; ··· 276 276 277 277 static struct platform_driver puv3_i2c_driver = { 278 278 .probe = puv3_i2c_probe, 279 - .remove = __devexit_p(puv3_i2c_remove), 279 + .remove = puv3_i2c_remove, 280 280 .driver = { 281 281 .name = "PKUnity-v3-I2C", 282 282 .owner = THIS_MODULE,
+3 -3
drivers/i2c/busses/i2c-pxa-pci.c
··· 94 94 return ERR_PTR(ret); 95 95 } 96 96 97 - static int __devinit ce4100_i2c_probe(struct pci_dev *dev, 97 + static int ce4100_i2c_probe(struct pci_dev *dev, 98 98 const struct pci_device_id *ent) 99 99 { 100 100 int ret; ··· 135 135 return ret; 136 136 } 137 137 138 - static void __devexit ce4100_i2c_remove(struct pci_dev *dev) 138 + static void ce4100_i2c_remove(struct pci_dev *dev) 139 139 { 140 140 struct ce4100_devices *sds; 141 141 unsigned int i; ··· 160 160 .name = "ce4100_i2c", 161 161 .id_table = ce4100_i2c_devices, 162 162 .probe = ce4100_i2c_probe, 163 - .remove = __devexit_p(ce4100_i2c_remove), 163 + .remove = ce4100_i2c_remove, 164 164 }; 165 165 166 166 module_pci_driver(ce4100_i2c_driver);
+3 -3
drivers/i2c/busses/i2c-rcar.c
··· 613 613 .functionality = rcar_i2c_func, 614 614 }; 615 615 616 - static int __devinit rcar_i2c_probe(struct platform_device *pdev) 616 + static int rcar_i2c_probe(struct platform_device *pdev) 617 617 { 618 618 struct i2c_rcar_platform_data *pdata = pdev->dev.platform_data; 619 619 struct rcar_i2c_priv *priv; ··· 682 682 return 0; 683 683 } 684 684 685 - static int __devexit rcar_i2c_remove(struct platform_device *pdev) 685 + static int rcar_i2c_remove(struct platform_device *pdev) 686 686 { 687 687 struct rcar_i2c_priv *priv = platform_get_drvdata(pdev); 688 688 struct device *dev = &pdev->dev; ··· 699 699 .owner = THIS_MODULE, 700 700 }, 701 701 .probe = rcar_i2c_probe, 702 - .remove = __devexit_p(rcar_i2c_remove), 702 + .remove = rcar_i2c_remove, 703 703 }; 704 704 705 705 module_platform_driver(rcar_i2c_driver);
+4 -4
drivers/i2c/busses/i2c-s6000.c
··· 248 248 .functionality = s6i2c_functionality, 249 249 }; 250 250 251 - static u16 __devinit nanoseconds_on_clk(struct s6i2c_if *iface, u32 ns) 251 + static u16 nanoseconds_on_clk(struct s6i2c_if *iface, u32 ns) 252 252 { 253 253 u32 dividend = ((clk_get_rate(iface->clk) / 1000) * ns) / 1000000; 254 254 if (dividend > 0xffff) ··· 256 256 return dividend; 257 257 } 258 258 259 - static int __devinit s6i2c_probe(struct platform_device *dev) 259 + static int s6i2c_probe(struct platform_device *dev) 260 260 { 261 261 struct s6i2c_if *iface = &s6i2c_if; 262 262 struct i2c_adapter *p_adap; ··· 361 361 return rc; 362 362 } 363 363 364 - static int __devexit s6i2c_remove(struct platform_device *pdev) 364 + static int s6i2c_remove(struct platform_device *pdev) 365 365 { 366 366 struct s6i2c_if *iface = platform_get_drvdata(pdev); 367 367 i2c_wr16(iface, S6_I2C_ENABLE, 0); ··· 378 378 379 379 static struct platform_driver s6i2c_driver = { 380 380 .probe = s6i2c_probe, 381 - .remove = __devexit_p(s6i2c_remove), 381 + .remove = s6i2c_remove, 382 382 .driver = { 383 383 .name = DRV_NAME, 384 384 .owner = THIS_MODULE,
+4 -4
drivers/i2c/busses/i2c-sh7760.c
··· 390 390 * iclk = mclk/(CDF + 1). iclk must be < 20MHz. 391 391 * scl = iclk/(SCGD*8 + 20). 392 392 */ 393 - static int __devinit calc_CCR(unsigned long scl_hz) 393 + static int calc_CCR(unsigned long scl_hz) 394 394 { 395 395 struct clk *mclk; 396 396 unsigned long mck, m1, dff, odff, iclk; ··· 430 430 return ((scgdm << 2) | cdfm); 431 431 } 432 432 433 - static int __devinit sh7760_i2c_probe(struct platform_device *pdev) 433 + static int sh7760_i2c_probe(struct platform_device *pdev) 434 434 { 435 435 struct sh7760_i2c_platdata *pd; 436 436 struct resource *res; ··· 536 536 return ret; 537 537 } 538 538 539 - static int __devexit sh7760_i2c_remove(struct platform_device *pdev) 539 + static int sh7760_i2c_remove(struct platform_device *pdev) 540 540 { 541 541 struct cami2c *id = platform_get_drvdata(pdev); 542 542 ··· 557 557 .owner = THIS_MODULE, 558 558 }, 559 559 .probe = sh7760_i2c_probe, 560 - .remove = __devexit_p(sh7760_i2c_remove), 560 + .remove = sh7760_i2c_remove, 561 561 }; 562 562 563 563 module_platform_driver(sh7760_i2c_drv);
+1 -1
drivers/i2c/busses/i2c-sh_mobile.c
··· 758 758 .runtime_resume = sh_mobile_i2c_runtime_nop, 759 759 }; 760 760 761 - static const struct of_device_id sh_mobile_i2c_dt_ids[] __devinitconst = { 761 + static const struct of_device_id sh_mobile_i2c_dt_ids[] = { 762 762 { .compatible = "renesas,rmobile-iic", }, 763 763 {}, 764 764 };
+4 -4
drivers/i2c/busses/i2c-sirf.c
··· 258 258 .functionality = i2c_sirfsoc_func, 259 259 }; 260 260 261 - static int __devinit i2c_sirfsoc_probe(struct platform_device *pdev) 261 + static int i2c_sirfsoc_probe(struct platform_device *pdev) 262 262 { 263 263 struct sirfsoc_i2c *siic; 264 264 struct i2c_adapter *adap; ··· 385 385 return err; 386 386 } 387 387 388 - static int __devexit i2c_sirfsoc_remove(struct platform_device *pdev) 388 + static int i2c_sirfsoc_remove(struct platform_device *pdev) 389 389 { 390 390 struct i2c_adapter *adapter = platform_get_drvdata(pdev); 391 391 struct sirfsoc_i2c *siic = adapter->algo_data; ··· 433 433 }; 434 434 #endif 435 435 436 - static const struct of_device_id sirfsoc_i2c_of_match[] __devinitconst = { 436 + static const struct of_device_id sirfsoc_i2c_of_match[] = { 437 437 { .compatible = "sirf,prima2-i2c", }, 438 438 {}, 439 439 }; ··· 449 449 .of_match_table = sirfsoc_i2c_of_match, 450 450 }, 451 451 .probe = i2c_sirfsoc_probe, 452 - .remove = __devexit_p(i2c_sirfsoc_remove), 452 + .remove = i2c_sirfsoc_remove, 453 453 }; 454 454 module_platform_driver(i2c_sirfsoc_driver); 455 455
+2 -2
drivers/i2c/busses/i2c-sis5595.c
··· 142 142 outb(data, sis5595_base + SMB_DAT); 143 143 } 144 144 145 - static int __devinit sis5595_setup(struct pci_dev *SIS5595_dev) 145 + static int sis5595_setup(struct pci_dev *SIS5595_dev) 146 146 { 147 147 u16 a; 148 148 u8 val; ··· 376 376 377 377 MODULE_DEVICE_TABLE (pci, sis5595_ids); 378 378 379 - static int __devinit sis5595_probe(struct pci_dev *dev, const struct pci_device_id *id) 379 + static int sis5595_probe(struct pci_dev *dev, const struct pci_device_id *id) 380 380 { 381 381 int err; 382 382
+4 -4
drivers/i2c/busses/i2c-sis630.c
··· 389 389 I2C_FUNC_SMBUS_BLOCK_DATA; 390 390 } 391 391 392 - static int __devinit sis630_setup(struct pci_dev *sis630_dev) 392 + static int sis630_setup(struct pci_dev *sis630_dev) 393 393 { 394 394 unsigned char b; 395 395 struct pci_dev *dummy = NULL; ··· 480 480 481 481 MODULE_DEVICE_TABLE (pci, sis630_ids); 482 482 483 - static int __devinit sis630_probe(struct pci_dev *dev, const struct pci_device_id *id) 483 + static int sis630_probe(struct pci_dev *dev, const struct pci_device_id *id) 484 484 { 485 485 if (sis630_setup(dev)) { 486 486 dev_err(&dev->dev, "SIS630 comp. bus not detected, module not inserted.\n"); ··· 496 496 return i2c_add_adapter(&sis630_adapter); 497 497 } 498 498 499 - static void __devexit sis630_remove(struct pci_dev *dev) 499 + static void sis630_remove(struct pci_dev *dev) 500 500 { 501 501 if (acpi_base) { 502 502 i2c_del_adapter(&sis630_adapter); ··· 510 510 .name = "sis630_smbus", 511 511 .id_table = sis630_ids, 512 512 .probe = sis630_probe, 513 - .remove = __devexit_p(sis630_remove), 513 + .remove = sis630_remove, 514 514 }; 515 515 516 516 module_pci_driver(sis630_driver);
+3 -3
drivers/i2c/busses/i2c-sis96x.c
··· 252 252 253 253 MODULE_DEVICE_TABLE (pci, sis96x_ids); 254 254 255 - static int __devinit sis96x_probe(struct pci_dev *dev, 255 + static int sis96x_probe(struct pci_dev *dev, 256 256 const struct pci_device_id *id) 257 257 { 258 258 u16 ww = 0; ··· 308 308 return retval; 309 309 } 310 310 311 - static void __devexit sis96x_remove(struct pci_dev *dev) 311 + static void sis96x_remove(struct pci_dev *dev) 312 312 { 313 313 if (sis96x_smbus_base) { 314 314 i2c_del_adapter(&sis96x_adapter); ··· 321 321 .name = "sis96x_smbus", 322 322 .id_table = sis96x_ids, 323 323 .probe = sis96x_probe, 324 - .remove = __devexit_p(sis96x_remove), 324 + .remove = sis96x_remove, 325 325 }; 326 326 327 327 module_pci_driver(sis96x_driver);
+4 -4
drivers/i2c/busses/i2c-tegra.c
··· 642 642 643 643 #if defined(CONFIG_OF) 644 644 /* Match table for of_platform binding */ 645 - static const struct of_device_id tegra_i2c_of_match[] __devinitconst = { 645 + static const struct of_device_id tegra_i2c_of_match[] = { 646 646 { .compatible = "nvidia,tegra30-i2c", .data = &tegra30_i2c_hw, }, 647 647 { .compatible = "nvidia,tegra20-i2c", .data = &tegra20_i2c_hw, }, 648 648 { .compatible = "nvidia,tegra20-i2c-dvc", .data = &tegra20_i2c_hw, }, ··· 651 651 MODULE_DEVICE_TABLE(of, tegra_i2c_of_match); 652 652 #endif 653 653 654 - static int __devinit tegra_i2c_probe(struct platform_device *pdev) 654 + static int tegra_i2c_probe(struct platform_device *pdev) 655 655 { 656 656 struct tegra_i2c_dev *i2c_dev; 657 657 struct tegra_i2c_platform_data *pdata = pdev->dev.platform_data; ··· 769 769 return 0; 770 770 } 771 771 772 - static int __devexit tegra_i2c_remove(struct platform_device *pdev) 772 + static int tegra_i2c_remove(struct platform_device *pdev) 773 773 { 774 774 struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); 775 775 i2c_del_adapter(&i2c_dev->adapter); ··· 817 817 818 818 static struct platform_driver tegra_i2c_driver = { 819 819 .probe = tegra_i2c_probe, 820 - .remove = __devexit_p(tegra_i2c_remove), 820 + .remove = tegra_i2c_remove, 821 821 .driver = { 822 822 .name = "tegra-i2c", 823 823 .owner = THIS_MODULE,
+3 -3
drivers/i2c/busses/i2c-via.c
··· 96 96 97 97 MODULE_DEVICE_TABLE (pci, vt586b_ids); 98 98 99 - static int __devinit vt586b_probe(struct pci_dev *dev, const struct pci_device_id *id) 99 + static int vt586b_probe(struct pci_dev *dev, const struct pci_device_id *id) 100 100 { 101 101 u16 base; 102 102 u8 rev; ··· 146 146 return 0; 147 147 } 148 148 149 - static void __devexit vt586b_remove(struct pci_dev *dev) 149 + static void vt586b_remove(struct pci_dev *dev) 150 150 { 151 151 i2c_del_adapter(&vt586b_adapter); 152 152 release_region(I2C_DIR, IOSPACE); ··· 158 158 .name = "vt586b_smbus", 159 159 .id_table = vt586b_ids, 160 160 .probe = vt586b_probe, 161 - .remove = __devexit_p(vt586b_remove), 161 + .remove = vt586b_remove, 162 162 }; 163 163 164 164 module_pci_driver(vt586b_driver);
+2 -2
drivers/i2c/busses/i2c-viapro.c
··· 320 320 .algo = &smbus_algorithm, 321 321 }; 322 322 323 - static int __devinit vt596_probe(struct pci_dev *pdev, 324 - const struct pci_device_id *id) 323 + static int vt596_probe(struct pci_dev *pdev, 324 + const struct pci_device_id *id) 325 325 { 326 326 unsigned char temp; 327 327 int error;
+3 -3
drivers/i2c/busses/i2c-viperboard.c
··· 360 360 .functionality = vprbrd_i2c_func, 361 361 }; 362 362 363 - static int __devinit vprbrd_i2c_probe(struct platform_device *pdev) 363 + static int vprbrd_i2c_probe(struct platform_device *pdev) 364 364 { 365 365 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); 366 366 struct vprbrd_i2c *vb_i2c; ··· 418 418 return ret; 419 419 } 420 420 421 - static int __devexit vprbrd_i2c_remove(struct platform_device *pdev) 421 + static int vprbrd_i2c_remove(struct platform_device *pdev) 422 422 { 423 423 struct vprbrd_i2c *vb_i2c = platform_get_drvdata(pdev); 424 424 int ret; ··· 432 432 .driver.name = "viperboard-i2c", 433 433 .driver.owner = THIS_MODULE, 434 434 .probe = vprbrd_i2c_probe, 435 - .remove = __devexit_p(vprbrd_i2c_remove), 435 + .remove = vprbrd_i2c_remove, 436 436 }; 437 437 438 438 static int __init vprbrd_i2c_init(void)
+4 -4
drivers/i2c/busses/i2c-xiic.c
··· 689 689 }; 690 690 691 691 692 - static int __devinit xiic_i2c_probe(struct platform_device *pdev) 692 + static int xiic_i2c_probe(struct platform_device *pdev) 693 693 { 694 694 struct xiic_i2c *i2c; 695 695 struct xiic_i2c_platform_data *pdata; ··· 774 774 return -ENOENT; 775 775 } 776 776 777 - static int __devexit xiic_i2c_remove(struct platform_device* pdev) 777 + static int xiic_i2c_remove(struct platform_device *pdev) 778 778 { 779 779 struct xiic_i2c *i2c = platform_get_drvdata(pdev); 780 780 struct resource *res; ··· 800 800 } 801 801 802 802 #if defined(CONFIG_OF) 803 - static const struct of_device_id xiic_of_match[] __devinitconst = { 803 + static const struct of_device_id xiic_of_match[] = { 804 804 { .compatible = "xlnx,xps-iic-2.00.a", }, 805 805 {}, 806 806 }; ··· 809 809 810 810 static struct platform_driver xiic_i2c_driver = { 811 811 .probe = xiic_i2c_probe, 812 - .remove = __devexit_p(xiic_i2c_remove), 812 + .remove = xiic_i2c_remove, 813 813 .driver = { 814 814 .owner = THIS_MODULE, 815 815 .name = DRIVER_NAME,
+3 -3
drivers/i2c/busses/i2c-xlr.c
··· 214 214 .functionality = xlr_func, 215 215 }; 216 216 217 - static int __devinit xlr_i2c_probe(struct platform_device *pdev) 217 + static int xlr_i2c_probe(struct platform_device *pdev) 218 218 { 219 219 struct xlr_i2c_private *priv; 220 220 struct resource *res; ··· 251 251 return 0; 252 252 } 253 253 254 - static int __devexit xlr_i2c_remove(struct platform_device *pdev) 254 + static int xlr_i2c_remove(struct platform_device *pdev) 255 255 { 256 256 struct xlr_i2c_private *priv; 257 257 ··· 263 263 264 264 static struct platform_driver xlr_i2c_driver = { 265 265 .probe = xlr_i2c_probe, 266 - .remove = __devexit_p(xlr_i2c_remove), 266 + .remove = xlr_i2c_remove, 267 267 .driver = { 268 268 .name = "xlr-i2cbus", 269 269 .owner = THIS_MODULE,
+8 -8
drivers/i2c/busses/scx200_acb.c
··· 389 389 static struct scx200_acb_iface *scx200_acb_list; 390 390 static DEFINE_MUTEX(scx200_acb_list_mutex); 391 391 392 - static __devinit int scx200_acb_probe(struct scx200_acb_iface *iface) 392 + static int scx200_acb_probe(struct scx200_acb_iface *iface) 393 393 { 394 394 u8 val; 395 395 ··· 424 424 return 0; 425 425 } 426 426 427 - static __devinit struct scx200_acb_iface *scx200_create_iface(const char *text, 427 + static struct scx200_acb_iface *scx200_create_iface(const char *text, 428 428 struct device *dev, int index) 429 429 { 430 430 struct scx200_acb_iface *iface; ··· 449 449 return iface; 450 450 } 451 451 452 - static int __devinit scx200_acb_create(struct scx200_acb_iface *iface) 452 + static int scx200_acb_create(struct scx200_acb_iface *iface) 453 453 { 454 454 struct i2c_adapter *adapter; 455 455 int rc; ··· 480 480 return 0; 481 481 } 482 482 483 - static struct scx200_acb_iface * __devinit scx200_create_dev(const char *text, 483 + static struct scx200_acb_iface *scx200_create_dev(const char *text, 484 484 unsigned long base, int index, struct device *dev) 485 485 { 486 486 struct scx200_acb_iface *iface; ··· 508 508 return NULL; 509 509 } 510 510 511 - static int __devinit scx200_probe(struct platform_device *pdev) 511 + static int scx200_probe(struct platform_device *pdev) 512 512 { 513 513 struct scx200_acb_iface *iface; 514 514 struct resource *res; ··· 530 530 return 0; 531 531 } 532 532 533 - static void __devexit scx200_cleanup_iface(struct scx200_acb_iface *iface) 533 + static void scx200_cleanup_iface(struct scx200_acb_iface *iface) 534 534 { 535 535 i2c_del_adapter(&iface->adapter); 536 536 release_region(iface->base, 8); 537 537 kfree(iface); 538 538 } 539 539 540 - static int __devexit scx200_remove(struct platform_device *pdev) 540 + static int scx200_remove(struct platform_device *pdev) 541 541 { 542 542 struct scx200_acb_iface *iface; 543 543 ··· 554 554 .owner = THIS_MODULE, 555 555 }, 556 556 .probe = scx200_probe, 557 - .remove = __devexit_p(scx200_remove), 557 + .remove = scx200_remove, 558 558 }; 559 559 560 560 static DEFINE_PCI_DEVICE_TABLE(scx200_isa) = {
+7 -7
drivers/i2c/muxes/i2c-mux-gpio.c
··· 53 53 return 0; 54 54 } 55 55 56 - static int __devinit match_gpio_chip_by_label(struct gpio_chip *chip, 56 + static int match_gpio_chip_by_label(struct gpio_chip *chip, 57 57 void *data) 58 58 { 59 59 return !strcmp(chip->label, data); 60 60 } 61 61 62 62 #ifdef CONFIG_OF 63 - static int __devinit i2c_mux_gpio_probe_dt(struct gpiomux *mux, 63 + static int i2c_mux_gpio_probe_dt(struct gpiomux *mux, 64 64 struct platform_device *pdev) 65 65 { 66 66 struct device_node *np = pdev->dev.of_node; ··· 125 125 return 0; 126 126 } 127 127 #else 128 - static int __devinit i2c_mux_gpio_probe_dt(struct gpiomux *mux, 128 + static int i2c_mux_gpio_probe_dt(struct gpiomux *mux, 129 129 struct platform_device *pdev) 130 130 { 131 131 return 0; 132 132 } 133 133 #endif 134 134 135 - static int __devinit i2c_mux_gpio_probe(struct platform_device *pdev) 135 + static int i2c_mux_gpio_probe(struct platform_device *pdev) 136 136 { 137 137 struct gpiomux *mux; 138 138 struct i2c_adapter *parent; ··· 239 239 return ret; 240 240 } 241 241 242 - static int __devexit i2c_mux_gpio_remove(struct platform_device *pdev) 242 + static int i2c_mux_gpio_remove(struct platform_device *pdev) 243 243 { 244 244 struct gpiomux *mux = platform_get_drvdata(pdev); 245 245 int i; ··· 256 256 return 0; 257 257 } 258 258 259 - static const struct of_device_id i2c_mux_gpio_of_match[] __devinitconst = { 259 + static const struct of_device_id i2c_mux_gpio_of_match[] = { 260 260 { .compatible = "i2c-mux-gpio", }, 261 261 {}, 262 262 }; ··· 264 264 265 265 static struct platform_driver i2c_mux_gpio_driver = { 266 266 .probe = i2c_mux_gpio_probe, 267 - .remove = __devexit_p(i2c_mux_gpio_remove), 267 + .remove = i2c_mux_gpio_remove, 268 268 .driver = { 269 269 .owner = THIS_MODULE, 270 270 .name = "i2c-mux-gpio",
+4 -4
drivers/i2c/muxes/i2c-mux-pinctrl.c
··· 129 129 } 130 130 #endif 131 131 132 - static int __devinit i2c_mux_pinctrl_probe(struct platform_device *pdev) 132 + static int i2c_mux_pinctrl_probe(struct platform_device *pdev) 133 133 { 134 134 struct i2c_mux_pinctrl *mux; 135 135 int (*deselect)(struct i2c_adapter *, void *, u32); ··· 241 241 return ret; 242 242 } 243 243 244 - static int __devexit i2c_mux_pinctrl_remove(struct platform_device *pdev) 244 + static int i2c_mux_pinctrl_remove(struct platform_device *pdev) 245 245 { 246 246 struct i2c_mux_pinctrl *mux = platform_get_drvdata(pdev); 247 247 int i; ··· 255 255 } 256 256 257 257 #ifdef CONFIG_OF 258 - static const struct of_device_id i2c_mux_pinctrl_of_match[] __devinitconst = { 258 + static const struct of_device_id i2c_mux_pinctrl_of_match[] = { 259 259 { .compatible = "i2c-mux-pinctrl", }, 260 260 {}, 261 261 }; ··· 269 269 .of_match_table = of_match_ptr(i2c_mux_pinctrl_of_match), 270 270 }, 271 271 .probe = i2c_mux_pinctrl_probe, 272 - .remove = __devexit_p(i2c_mux_pinctrl_remove), 272 + .remove = i2c_mux_pinctrl_remove, 273 273 }; 274 274 module_platform_driver(i2c_mux_pinctrl_driver); 275 275