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

Drivers: rtc: 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: Alessandro Zummo <a.zummo@towertech.it>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+209 -214
+3 -3
drivers/rtc/rtc-88pm80x.c
··· 248 248 249 249 static SIMPLE_DEV_PM_OPS(pm80x_rtc_pm_ops, pm80x_rtc_suspend, pm80x_rtc_resume); 250 250 251 - static int __devinit pm80x_rtc_probe(struct platform_device *pdev) 251 + static int pm80x_rtc_probe(struct platform_device *pdev) 252 252 { 253 253 struct pm80x_chip *chip = dev_get_drvdata(pdev->dev.parent); 254 254 struct pm80x_platform_data *pm80x_pdata; ··· 342 342 return ret; 343 343 } 344 344 345 - static int __devexit pm80x_rtc_remove(struct platform_device *pdev) 345 + static int pm80x_rtc_remove(struct platform_device *pdev) 346 346 { 347 347 struct pm80x_rtc_info *info = platform_get_drvdata(pdev); 348 348 platform_set_drvdata(pdev, NULL); ··· 358 358 .pm = &pm80x_rtc_pm_ops, 359 359 }, 360 360 .probe = pm80x_rtc_probe, 361 - .remove = __devexit_p(pm80x_rtc_remove), 361 + .remove = pm80x_rtc_remove, 362 362 }; 363 363 364 364 module_platform_driver(pm80x_rtc_driver);
+5 -5
drivers/rtc/rtc-88pm860x.c
··· 286 286 #endif 287 287 288 288 #ifdef CONFIG_OF 289 - static int __devinit pm860x_rtc_dt_init(struct platform_device *pdev, 290 - struct pm860x_rtc_info *info) 289 + static int pm860x_rtc_dt_init(struct platform_device *pdev, 290 + struct pm860x_rtc_info *info) 291 291 { 292 292 struct device_node *np = pdev->dev.parent->of_node; 293 293 int ret; ··· 307 307 #define pm860x_rtc_dt_init(x, y) (-1) 308 308 #endif 309 309 310 - static int __devinit pm860x_rtc_probe(struct platform_device *pdev) 310 + static int pm860x_rtc_probe(struct platform_device *pdev) 311 311 { 312 312 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); 313 313 struct pm860x_rtc_pdata *pdata = NULL; ··· 412 412 return ret; 413 413 } 414 414 415 - static int __devexit pm860x_rtc_remove(struct platform_device *pdev) 415 + static int pm860x_rtc_remove(struct platform_device *pdev) 416 416 { 417 417 struct pm860x_rtc_info *info = platform_get_drvdata(pdev); 418 418 ··· 459 459 .pm = &pm860x_rtc_pm_ops, 460 460 }, 461 461 .probe = pm860x_rtc_probe, 462 - .remove = __devexit_p(pm860x_rtc_remove), 462 + .remove = pm860x_rtc_remove, 463 463 }; 464 464 465 465 module_platform_driver(pm860x_rtc_driver);
+3 -3
drivers/rtc/rtc-ab8500.c
··· 389 389 .alarm_irq_enable = ab8500_rtc_irq_enable, 390 390 }; 391 391 392 - static int __devinit ab8500_rtc_probe(struct platform_device *pdev) 392 + static int ab8500_rtc_probe(struct platform_device *pdev) 393 393 { 394 394 int err; 395 395 struct rtc_device *rtc; ··· 448 448 return 0; 449 449 } 450 450 451 - static int __devexit ab8500_rtc_remove(struct platform_device *pdev) 451 + static int ab8500_rtc_remove(struct platform_device *pdev) 452 452 { 453 453 struct rtc_device *rtc = platform_get_drvdata(pdev); 454 454 int irq = platform_get_irq_byname(pdev, "ALARM"); ··· 468 468 .owner = THIS_MODULE, 469 469 }, 470 470 .probe = ab8500_rtc_probe, 471 - .remove = __devexit_p(ab8500_rtc_remove), 471 + .remove = ab8500_rtc_remove, 472 472 }; 473 473 474 474 module_platform_driver(ab8500_rtc_driver);
+3 -3
drivers/rtc/rtc-at91sam9.c
··· 289 289 /* 290 290 * Initialize and install RTC driver 291 291 */ 292 - static int __devinit at91_rtc_probe(struct platform_device *pdev) 292 + static int at91_rtc_probe(struct platform_device *pdev) 293 293 { 294 294 struct resource *r, *r_gpbr; 295 295 struct sam9_rtc *rtc; ··· 387 387 /* 388 388 * Disable and remove the RTC driver 389 389 */ 390 - static int __devexit at91_rtc_remove(struct platform_device *pdev) 390 + static int at91_rtc_remove(struct platform_device *pdev) 391 391 { 392 392 struct sam9_rtc *rtc = platform_get_drvdata(pdev); 393 393 u32 mr = rtt_readl(rtc, MR); ··· 463 463 464 464 static struct platform_driver at91_rtc_driver = { 465 465 .probe = at91_rtc_probe, 466 - .remove = __devexit_p(at91_rtc_remove), 466 + .remove = at91_rtc_remove, 467 467 .shutdown = at91_rtc_shutdown, 468 468 .suspend = at91_rtc_suspend, 469 469 .resume = at91_rtc_resume,
+3 -3
drivers/rtc/rtc-au1xxx.c
··· 62 62 .set_time = au1xtoy_rtc_set_time, 63 63 }; 64 64 65 - static int __devinit au1xtoy_rtc_probe(struct platform_device *pdev) 65 + static int au1xtoy_rtc_probe(struct platform_device *pdev) 66 66 { 67 67 struct rtc_device *rtcdev; 68 68 unsigned long t; ··· 116 116 return ret; 117 117 } 118 118 119 - static int __devexit au1xtoy_rtc_remove(struct platform_device *pdev) 119 + static int au1xtoy_rtc_remove(struct platform_device *pdev) 120 120 { 121 121 struct rtc_device *rtcdev = platform_get_drvdata(pdev); 122 122 ··· 131 131 .name = "rtc-au1xxx", 132 132 .owner = THIS_MODULE, 133 133 }, 134 - .remove = __devexit_p(au1xtoy_rtc_remove), 134 + .remove = au1xtoy_rtc_remove, 135 135 }; 136 136 137 137 static int __init au1xtoy_rtc_init(void)
+3 -3
drivers/rtc/rtc-bfin.c
··· 342 342 .alarm_irq_enable = bfin_rtc_alarm_irq_enable, 343 343 }; 344 344 345 - static int __devinit bfin_rtc_probe(struct platform_device *pdev) 345 + static int bfin_rtc_probe(struct platform_device *pdev) 346 346 { 347 347 struct bfin_rtc *rtc; 348 348 struct device *dev = &pdev->dev; ··· 388 388 return ret; 389 389 } 390 390 391 - static int __devexit bfin_rtc_remove(struct platform_device *pdev) 391 + static int bfin_rtc_remove(struct platform_device *pdev) 392 392 { 393 393 struct bfin_rtc *rtc = platform_get_drvdata(pdev); 394 394 struct device *dev = &pdev->dev; ··· 451 451 .owner = THIS_MODULE, 452 452 }, 453 453 .probe = bfin_rtc_probe, 454 - .remove = __devexit_p(bfin_rtc_remove), 454 + .remove = bfin_rtc_remove, 455 455 .suspend = bfin_rtc_suspend, 456 456 .resume = bfin_rtc_resume, 457 457 };
+2 -2
drivers/rtc/rtc-bq32k.c
··· 163 163 return 0; 164 164 } 165 165 166 - static int __devexit bq32k_remove(struct i2c_client *client) 166 + static int bq32k_remove(struct i2c_client *client) 167 167 { 168 168 struct rtc_device *rtc = i2c_get_clientdata(client); 169 169 ··· 183 183 .owner = THIS_MODULE, 184 184 }, 185 185 .probe = bq32k_probe, 186 - .remove = __devexit_p(bq32k_remove), 186 + .remove = bq32k_remove, 187 187 .id_table = bq32k_id, 188 188 }; 189 189
+3 -3
drivers/rtc/rtc-bq4802.c
··· 140 140 .set_time = bq4802_set_time, 141 141 }; 142 142 143 - static int __devinit bq4802_probe(struct platform_device *pdev) 143 + static int bq4802_probe(struct platform_device *pdev) 144 144 { 145 145 struct bq4802 *p = kzalloc(sizeof(*p), GFP_KERNEL); 146 146 int err = -ENOMEM; ··· 191 191 goto out; 192 192 } 193 193 194 - static int __devexit bq4802_remove(struct platform_device *pdev) 194 + static int bq4802_remove(struct platform_device *pdev) 195 195 { 196 196 struct bq4802 *p = platform_get_drvdata(pdev); 197 197 ··· 215 215 .owner = THIS_MODULE, 216 216 }, 217 217 .probe = bq4802_probe, 218 - .remove = __devexit_p(bq4802_remove), 218 + .remove = bq4802_remove, 219 219 }; 220 220 221 221 module_platform_driver(bq4802_driver);
+3 -6
drivers/rtc/rtc-cmos.c
··· 947 947 */ 948 948 static struct cmos_rtc_board_info acpi_rtc_info; 949 949 950 - static void __devinit 951 - cmos_wake_setup(struct device *dev) 950 + static void cmos_wake_setup(struct device *dev) 952 951 { 953 952 if (acpi_disabled) 954 953 return; ··· 979 980 980 981 #else 981 982 982 - static void __devinit 983 - cmos_wake_setup(struct device *dev) 983 + static void cmos_wake_setup(struct device *dev) 984 984 { 985 985 } 986 986 ··· 989 991 990 992 #include <linux/pnp.h> 991 993 992 - static int __devinit 993 - cmos_pnp_probe(struct pnp_dev *pnp, const struct pnp_device_id *id) 994 + static int cmos_pnp_probe(struct pnp_dev *pnp, const struct pnp_device_id *id) 994 995 { 995 996 cmos_wake_setup(&pnp->dev); 996 997
+3 -3
drivers/rtc/rtc-da9052.c
··· 228 228 .alarm_irq_enable = da9052_rtc_alarm_irq_enable, 229 229 }; 230 230 231 - static int __devinit da9052_rtc_probe(struct platform_device *pdev) 231 + static int da9052_rtc_probe(struct platform_device *pdev) 232 232 { 233 233 struct da9052_rtc *rtc; 234 234 int ret; ··· 262 262 return ret; 263 263 } 264 264 265 - static int __devexit da9052_rtc_remove(struct platform_device *pdev) 265 + static int da9052_rtc_remove(struct platform_device *pdev) 266 266 { 267 267 struct da9052_rtc *rtc = pdev->dev.platform_data; 268 268 ··· 275 275 276 276 static struct platform_driver da9052_rtc_driver = { 277 277 .probe = da9052_rtc_probe, 278 - .remove = __devexit_p(da9052_rtc_remove), 278 + .remove = da9052_rtc_remove, 279 279 .driver = { 280 280 .name = "da9052-rtc", 281 281 .owner = THIS_MODULE,
+2 -2
drivers/rtc/rtc-davinci.c
··· 567 567 return ret; 568 568 } 569 569 570 - static int __devexit davinci_rtc_remove(struct platform_device *pdev) 570 + static int davinci_rtc_remove(struct platform_device *pdev) 571 571 { 572 572 struct davinci_rtc *davinci_rtc = platform_get_drvdata(pdev); 573 573 ··· 589 589 590 590 static struct platform_driver davinci_rtc_driver = { 591 591 .probe = davinci_rtc_probe, 592 - .remove = __devexit_p(davinci_rtc_remove), 592 + .remove = davinci_rtc_remove, 593 593 .driver = { 594 594 .name = "rtc_davinci", 595 595 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-dm355evm.c
··· 123 123 124 124 /*----------------------------------------------------------------------*/ 125 125 126 - static int __devinit dm355evm_rtc_probe(struct platform_device *pdev) 126 + static int dm355evm_rtc_probe(struct platform_device *pdev) 127 127 { 128 128 struct rtc_device *rtc; 129 129 ··· 139 139 return 0; 140 140 } 141 141 142 - static int __devexit dm355evm_rtc_remove(struct platform_device *pdev) 142 + static int dm355evm_rtc_remove(struct platform_device *pdev) 143 143 { 144 144 struct rtc_device *rtc = platform_get_drvdata(pdev); 145 145 ··· 154 154 */ 155 155 static struct platform_driver rtc_dm355evm_driver = { 156 156 .probe = dm355evm_rtc_probe, 157 - .remove = __devexit_p(dm355evm_rtc_remove), 157 + .remove = dm355evm_rtc_remove, 158 158 .driver = { 159 159 .owner = THIS_MODULE, 160 160 .name = "rtc-dm355evm",
+3 -3
drivers/rtc/rtc-ds1286.c
··· 329 329 .alarm_irq_enable = ds1286_alarm_irq_enable, 330 330 }; 331 331 332 - static int __devinit ds1286_probe(struct platform_device *pdev) 332 + static int ds1286_probe(struct platform_device *pdev) 333 333 { 334 334 struct rtc_device *rtc; 335 335 struct resource *res; ··· 376 376 return ret; 377 377 } 378 378 379 - static int __devexit ds1286_remove(struct platform_device *pdev) 379 + static int ds1286_remove(struct platform_device *pdev) 380 380 { 381 381 struct ds1286_priv *priv = platform_get_drvdata(pdev); 382 382 ··· 393 393 .owner = THIS_MODULE, 394 394 }, 395 395 .probe = ds1286_probe, 396 - .remove = __devexit_p(ds1286_remove), 396 + .remove = ds1286_remove, 397 397 }; 398 398 399 399 module_platform_driver(ds1286_platform_driver);
+2 -2
drivers/rtc/rtc-ds1302.c
··· 234 234 return 0; 235 235 } 236 236 237 - static int __devexit ds1302_rtc_remove(struct platform_device *pdev) 237 + static int ds1302_rtc_remove(struct platform_device *pdev) 238 238 { 239 239 struct rtc_device *rtc = platform_get_drvdata(pdev); 240 240 ··· 249 249 .name = DRV_NAME, 250 250 .owner = THIS_MODULE, 251 251 }, 252 - .remove = __devexit_p(ds1302_rtc_remove), 252 + .remove = ds1302_rtc_remove, 253 253 }; 254 254 255 255 static int __init ds1302_rtc_init(void)
+3 -3
drivers/rtc/rtc-ds1305.c
··· 601 601 * Interface to SPI stack 602 602 */ 603 603 604 - static int __devinit ds1305_probe(struct spi_device *spi) 604 + static int ds1305_probe(struct spi_device *spi) 605 605 { 606 606 struct ds1305 *ds1305; 607 607 int status; ··· 787 787 return status; 788 788 } 789 789 790 - static int __devexit ds1305_remove(struct spi_device *spi) 790 + static int ds1305_remove(struct spi_device *spi) 791 791 { 792 792 struct ds1305 *ds1305 = spi_get_drvdata(spi); 793 793 ··· 810 810 .driver.name = "rtc-ds1305", 811 811 .driver.owner = THIS_MODULE, 812 812 .probe = ds1305_probe, 813 - .remove = __devexit_p(ds1305_remove), 813 + .remove = ds1305_remove, 814 814 /* REVISIT add suspend/resume */ 815 815 }; 816 816
+4 -4
drivers/rtc/rtc-ds1307.c
··· 617 617 618 618 /*----------------------------------------------------------------------*/ 619 619 620 - static int __devinit ds1307_probe(struct i2c_client *client, 621 - const struct i2c_device_id *id) 620 + static int ds1307_probe(struct i2c_client *client, 621 + const struct i2c_device_id *id) 622 622 { 623 623 struct ds1307 *ds1307; 624 624 int err = -ENODEV; ··· 938 938 return err; 939 939 } 940 940 941 - static int __devexit ds1307_remove(struct i2c_client *client) 941 + static int ds1307_remove(struct i2c_client *client) 942 942 { 943 943 struct ds1307 *ds1307 = i2c_get_clientdata(client); 944 944 ··· 963 963 .owner = THIS_MODULE, 964 964 }, 965 965 .probe = ds1307_probe, 966 - .remove = __devexit_p(ds1307_remove), 966 + .remove = ds1307_remove, 967 967 .id_table = ds1307_id, 968 968 }; 969 969
+2 -2
drivers/rtc/rtc-ds1374.c
··· 391 391 return ret; 392 392 } 393 393 394 - static int __devexit ds1374_remove(struct i2c_client *client) 394 + static int ds1374_remove(struct i2c_client *client) 395 395 { 396 396 struct ds1374 *ds1374 = i2c_get_clientdata(client); 397 397 ··· 442 442 .pm = DS1374_PM, 443 443 }, 444 444 .probe = ds1374_probe, 445 - .remove = __devexit_p(ds1374_remove), 445 + .remove = ds1374_remove, 446 446 .id_table = ds1374_id, 447 447 }; 448 448
+3 -3
drivers/rtc/rtc-ds1390.c
··· 121 121 .set_time = ds1390_set_time, 122 122 }; 123 123 124 - static int __devinit ds1390_probe(struct spi_device *spi) 124 + static int ds1390_probe(struct spi_device *spi) 125 125 { 126 126 unsigned char tmp; 127 127 struct ds1390 *chip; ··· 156 156 return res; 157 157 } 158 158 159 - static int __devexit ds1390_remove(struct spi_device *spi) 159 + static int ds1390_remove(struct spi_device *spi) 160 160 { 161 161 struct ds1390 *chip = spi_get_drvdata(spi); 162 162 ··· 172 172 .owner = THIS_MODULE, 173 173 }, 174 174 .probe = ds1390_probe, 175 - .remove = __devexit_p(ds1390_remove), 175 + .remove = ds1390_remove, 176 176 }; 177 177 178 178 module_spi_driver(ds1390_driver);
+3 -5
drivers/rtc/rtc-ds1511.c
··· 476 476 .write = ds1511_nvram_write, 477 477 }; 478 478 479 - static int __devinit 480 - ds1511_rtc_probe(struct platform_device *pdev) 479 + static int ds1511_rtc_probe(struct platform_device *pdev) 481 480 { 482 481 struct rtc_device *rtc; 483 482 struct resource *res; ··· 550 551 return ret; 551 552 } 552 553 553 - static int __devexit 554 - ds1511_rtc_remove(struct platform_device *pdev) 554 + static int ds1511_rtc_remove(struct platform_device *pdev) 555 555 { 556 556 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); 557 557 ··· 571 573 572 574 static struct platform_driver ds1511_rtc_driver = { 573 575 .probe = ds1511_rtc_probe, 574 - .remove = __devexit_p(ds1511_rtc_remove), 576 + .remove = ds1511_rtc_remove, 575 577 .driver = { 576 578 .name = "ds1511", 577 579 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-ds1553.c
··· 276 276 .write = ds1553_nvram_write, 277 277 }; 278 278 279 - static int __devinit ds1553_rtc_probe(struct platform_device *pdev) 279 + static int ds1553_rtc_probe(struct platform_device *pdev) 280 280 { 281 281 struct rtc_device *rtc; 282 282 struct resource *res; ··· 338 338 return ret; 339 339 } 340 340 341 - static int __devexit ds1553_rtc_remove(struct platform_device *pdev) 341 + static int ds1553_rtc_remove(struct platform_device *pdev) 342 342 { 343 343 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); 344 344 ··· 354 354 355 355 static struct platform_driver ds1553_rtc_driver = { 356 356 .probe = ds1553_rtc_probe, 357 - .remove = __devexit_p(ds1553_rtc_remove), 357 + .remove = ds1553_rtc_remove, 358 358 .driver = { 359 359 .name = "rtc-ds1553", 360 360 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-ds1742.c
··· 159 159 return count; 160 160 } 161 161 162 - static int __devinit ds1742_rtc_probe(struct platform_device *pdev) 162 + static int ds1742_rtc_probe(struct platform_device *pdev) 163 163 { 164 164 struct rtc_device *rtc; 165 165 struct resource *res; ··· 222 222 return ret; 223 223 } 224 224 225 - static int __devexit ds1742_rtc_remove(struct platform_device *pdev) 225 + static int ds1742_rtc_remove(struct platform_device *pdev) 226 226 { 227 227 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); 228 228 ··· 233 233 234 234 static struct platform_driver ds1742_rtc_driver = { 235 235 .probe = ds1742_rtc_probe, 236 - .remove = __devexit_p(ds1742_rtc_remove), 236 + .remove = ds1742_rtc_remove, 237 237 .driver = { 238 238 .name = "rtc-ds1742", 239 239 .owner = THIS_MODULE,
+4 -4
drivers/rtc/rtc-ds3232.c
··· 391 391 .alarm_irq_enable = ds3232_alarm_irq_enable, 392 392 }; 393 393 394 - static int __devinit ds3232_probe(struct i2c_client *client, 395 - const struct i2c_device_id *id) 394 + static int ds3232_probe(struct i2c_client *client, 395 + const struct i2c_device_id *id) 396 396 { 397 397 struct ds3232 *ds3232; 398 398 int ret; ··· 439 439 return ret; 440 440 } 441 441 442 - static int __devexit ds3232_remove(struct i2c_client *client) 442 + static int ds3232_remove(struct i2c_client *client) 443 443 { 444 444 struct ds3232 *ds3232 = i2c_get_clientdata(client); 445 445 ··· 469 469 .owner = THIS_MODULE, 470 470 }, 471 471 .probe = ds3232_probe, 472 - .remove = __devexit_p(ds3232_remove), 472 + .remove = ds3232_remove, 473 473 .id_table = ds3232_id, 474 474 }; 475 475
+3 -3
drivers/rtc/rtc-ds3234.c
··· 105 105 .set_time = ds3234_set_time, 106 106 }; 107 107 108 - static int __devinit ds3234_probe(struct spi_device *spi) 108 + static int ds3234_probe(struct spi_device *spi) 109 109 { 110 110 struct rtc_device *rtc; 111 111 unsigned char tmp; ··· 156 156 return 0; 157 157 } 158 158 159 - static int __devexit ds3234_remove(struct spi_device *spi) 159 + static int ds3234_remove(struct spi_device *spi) 160 160 { 161 161 struct rtc_device *rtc = spi_get_drvdata(spi); 162 162 ··· 170 170 .owner = THIS_MODULE, 171 171 }, 172 172 .probe = ds3234_probe, 173 - .remove = __devexit_p(ds3234_remove), 173 + .remove = ds3234_remove, 174 174 }; 175 175 176 176 module_spi_driver(ds3234_driver);
+3 -3
drivers/rtc/rtc-ep93xx.c
··· 127 127 .attrs = ep93xx_rtc_attrs, 128 128 }; 129 129 130 - static int __devinit ep93xx_rtc_probe(struct platform_device *pdev) 130 + static int ep93xx_rtc_probe(struct platform_device *pdev) 131 131 { 132 132 struct ep93xx_rtc *ep93xx_rtc; 133 133 struct resource *res; ··· 174 174 return err; 175 175 } 176 176 177 - static int __devexit ep93xx_rtc_remove(struct platform_device *pdev) 177 + static int ep93xx_rtc_remove(struct platform_device *pdev) 178 178 { 179 179 struct ep93xx_rtc *ep93xx_rtc = platform_get_drvdata(pdev); 180 180 ··· 192 192 .owner = THIS_MODULE, 193 193 }, 194 194 .probe = ep93xx_rtc_probe, 195 - .remove = __devexit_p(ep93xx_rtc_remove), 195 + .remove = ep93xx_rtc_remove, 196 196 }; 197 197 198 198 module_platform_driver(ep93xx_rtc_driver);
+4 -4
drivers/rtc/rtc-fm3130.c
··· 361 361 362 362 static struct i2c_driver fm3130_driver; 363 363 364 - static int __devinit fm3130_probe(struct i2c_client *client, 365 - const struct i2c_device_id *id) 364 + static int fm3130_probe(struct i2c_client *client, 365 + const struct i2c_device_id *id) 366 366 { 367 367 struct fm3130 *fm3130; 368 368 int err = -ENODEV; ··· 546 546 return err; 547 547 } 548 548 549 - static int __devexit fm3130_remove(struct i2c_client *client) 549 + static int fm3130_remove(struct i2c_client *client) 550 550 { 551 551 struct fm3130 *fm3130 = i2c_get_clientdata(client); 552 552 ··· 561 561 .owner = THIS_MODULE, 562 562 }, 563 563 .probe = fm3130_probe, 564 - .remove = __devexit_p(fm3130_remove), 564 + .remove = fm3130_remove, 565 565 .id_table = fm3130_id, 566 566 }; 567 567
+2 -2
drivers/rtc/rtc-imxdi.c
··· 480 480 return rc; 481 481 } 482 482 483 - static int __devexit dryice_rtc_remove(struct platform_device *pdev) 483 + static int dryice_rtc_remove(struct platform_device *pdev) 484 484 { 485 485 struct imxdi_dev *imxdi = platform_get_drvdata(pdev); 486 486 ··· 512 512 .owner = THIS_MODULE, 513 513 .of_match_table = of_match_ptr(dryice_dt_ids), 514 514 }, 515 - .remove = __devexit_p(dryice_rtc_remove), 515 + .remove = dryice_rtc_remove, 516 516 }; 517 517 518 518 static int __init dryice_rtc_init(void)
+3 -3
drivers/rtc/rtc-jz4740.c
··· 210 210 } 211 211 EXPORT_SYMBOL_GPL(jz4740_rtc_poweroff); 212 212 213 - static int __devinit jz4740_rtc_probe(struct platform_device *pdev) 213 + static int jz4740_rtc_probe(struct platform_device *pdev) 214 214 { 215 215 int ret; 216 216 struct jz4740_rtc *rtc; ··· 297 297 return ret; 298 298 } 299 299 300 - static int __devexit jz4740_rtc_remove(struct platform_device *pdev) 300 + static int jz4740_rtc_remove(struct platform_device *pdev) 301 301 { 302 302 struct jz4740_rtc *rtc = platform_get_drvdata(pdev); 303 303 ··· 347 347 348 348 static struct platform_driver jz4740_rtc_driver = { 349 349 .probe = jz4740_rtc_probe, 350 - .remove = __devexit_p(jz4740_rtc_remove), 350 + .remove = jz4740_rtc_remove, 351 351 .driver = { 352 352 .name = "jz4740-rtc", 353 353 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-lpc32xx.c
··· 197 197 .alarm_irq_enable = lpc32xx_rtc_alarm_irq_enable, 198 198 }; 199 199 200 - static int __devinit lpc32xx_rtc_probe(struct platform_device *pdev) 200 + static int lpc32xx_rtc_probe(struct platform_device *pdev) 201 201 { 202 202 struct resource *res; 203 203 struct lpc32xx_rtc *rtc; ··· 299 299 return 0; 300 300 } 301 301 302 - static int __devexit lpc32xx_rtc_remove(struct platform_device *pdev) 302 + static int lpc32xx_rtc_remove(struct platform_device *pdev) 303 303 { 304 304 struct lpc32xx_rtc *rtc = platform_get_drvdata(pdev); 305 305 ··· 397 397 398 398 static struct platform_driver lpc32xx_rtc_driver = { 399 399 .probe = lpc32xx_rtc_probe, 400 - .remove = __devexit_p(lpc32xx_rtc_remove), 400 + .remove = lpc32xx_rtc_remove, 401 401 .driver = { 402 402 .name = RTC_NAME, 403 403 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-ls1x.c
··· 143 143 .set_time = ls1x_rtc_set_time, 144 144 }; 145 145 146 - static int __devinit ls1x_rtc_probe(struct platform_device *pdev) 146 + static int ls1x_rtc_probe(struct platform_device *pdev) 147 147 { 148 148 struct rtc_device *rtcdev; 149 149 unsigned long v; ··· 185 185 return ret; 186 186 } 187 187 188 - static int __devexit ls1x_rtc_remove(struct platform_device *pdev) 188 + static int ls1x_rtc_remove(struct platform_device *pdev) 189 189 { 190 190 struct rtc_device *rtcdev = platform_get_drvdata(pdev); 191 191 ··· 200 200 .name = "ls1x-rtc", 201 201 .owner = THIS_MODULE, 202 202 }, 203 - .remove = __devexit_p(ls1x_rtc_remove), 203 + .remove = ls1x_rtc_remove, 204 204 .probe = ls1x_rtc_probe, 205 205 }; 206 206
+3 -3
drivers/rtc/rtc-m41t93.c
··· 170 170 171 171 static struct spi_driver m41t93_driver; 172 172 173 - static int __devinit m41t93_probe(struct spi_device *spi) 173 + static int m41t93_probe(struct spi_device *spi) 174 174 { 175 175 struct rtc_device *rtc; 176 176 int res; ··· 195 195 } 196 196 197 197 198 - static int __devexit m41t93_remove(struct spi_device *spi) 198 + static int m41t93_remove(struct spi_device *spi) 199 199 { 200 200 struct rtc_device *rtc = spi_get_drvdata(spi); 201 201 ··· 211 211 .owner = THIS_MODULE, 212 212 }, 213 213 .probe = m41t93_probe, 214 - .remove = __devexit_p(m41t93_remove), 214 + .remove = m41t93_remove, 215 215 }; 216 216 217 217 module_spi_driver(m41t93_driver);
+3 -3
drivers/rtc/rtc-m41t94.c
··· 110 110 111 111 static struct spi_driver m41t94_driver; 112 112 113 - static int __devinit m41t94_probe(struct spi_device *spi) 113 + static int m41t94_probe(struct spi_device *spi) 114 114 { 115 115 struct rtc_device *rtc; 116 116 int res; ··· 134 134 return 0; 135 135 } 136 136 137 - static int __devexit m41t94_remove(struct spi_device *spi) 137 + static int m41t94_remove(struct spi_device *spi) 138 138 { 139 139 struct rtc_device *rtc = spi_get_drvdata(spi); 140 140 ··· 150 150 .owner = THIS_MODULE, 151 151 }, 152 152 .probe = m41t94_probe, 153 - .remove = __devexit_p(m41t94_remove), 153 + .remove = m41t94_remove, 154 154 }; 155 155 156 156 module_spi_driver(m41t94_driver);
+3 -3
drivers/rtc/rtc-m48t35.c
··· 141 141 .set_time = m48t35_set_time, 142 142 }; 143 143 144 - static int __devinit m48t35_probe(struct platform_device *pdev) 144 + static int m48t35_probe(struct platform_device *pdev) 145 145 { 146 146 struct resource *res; 147 147 struct m48t35_priv *priv; ··· 194 194 return ret; 195 195 } 196 196 197 - static int __devexit m48t35_remove(struct platform_device *pdev) 197 + static int m48t35_remove(struct platform_device *pdev) 198 198 { 199 199 struct m48t35_priv *priv = platform_get_drvdata(pdev); 200 200 ··· 213 213 .owner = THIS_MODULE, 214 214 }, 215 215 .probe = m48t35_probe, 216 - .remove = __devexit_p(m48t35_remove), 216 + .remove = m48t35_remove, 217 217 }; 218 218 219 219 module_platform_driver(m48t35_platform_driver);
+3 -3
drivers/rtc/rtc-m48t59.c
··· 383 383 .write = m48t59_nvram_write, 384 384 }; 385 385 386 - static int __devinit m48t59_rtc_probe(struct platform_device *pdev) 386 + static int m48t59_rtc_probe(struct platform_device *pdev) 387 387 { 388 388 struct m48t59_plat_data *pdata = pdev->dev.platform_data; 389 389 struct m48t59_private *m48t59 = NULL; ··· 501 501 return ret; 502 502 } 503 503 504 - static int __devexit m48t59_rtc_remove(struct platform_device *pdev) 504 + static int m48t59_rtc_remove(struct platform_device *pdev) 505 505 { 506 506 struct m48t59_private *m48t59 = platform_get_drvdata(pdev); 507 507 struct m48t59_plat_data *pdata = pdev->dev.platform_data; ··· 527 527 .owner = THIS_MODULE, 528 528 }, 529 529 .probe = m48t59_rtc_probe, 530 - .remove = __devexit_p(m48t59_rtc_remove), 530 + .remove = m48t59_rtc_remove, 531 531 }; 532 532 533 533 module_platform_driver(m48t59_rtc_driver);
+3 -3
drivers/rtc/rtc-m48t86.c
··· 144 144 .proc = m48t86_rtc_proc, 145 145 }; 146 146 147 - static int __devinit m48t86_rtc_probe(struct platform_device *dev) 147 + static int m48t86_rtc_probe(struct platform_device *dev) 148 148 { 149 149 unsigned char reg; 150 150 struct m48t86_ops *ops = dev->dev.platform_data; ··· 164 164 return 0; 165 165 } 166 166 167 - static int __devexit m48t86_rtc_remove(struct platform_device *dev) 167 + static int m48t86_rtc_remove(struct platform_device *dev) 168 168 { 169 169 struct rtc_device *rtc = platform_get_drvdata(dev); 170 170 ··· 182 182 .owner = THIS_MODULE, 183 183 }, 184 184 .probe = m48t86_rtc_probe, 185 - .remove = __devexit_p(m48t86_rtc_remove), 185 + .remove = m48t86_rtc_remove, 186 186 }; 187 187 188 188 module_platform_driver(m48t86_rtc_platform_driver);
+3 -3
drivers/rtc/rtc-max6902.c
··· 120 120 .set_time = max6902_set_time, 121 121 }; 122 122 123 - static int __devinit max6902_probe(struct spi_device *spi) 123 + static int max6902_probe(struct spi_device *spi) 124 124 { 125 125 struct rtc_device *rtc; 126 126 unsigned char tmp; ··· 143 143 return 0; 144 144 } 145 145 146 - static int __devexit max6902_remove(struct spi_device *spi) 146 + static int max6902_remove(struct spi_device *spi) 147 147 { 148 148 struct rtc_device *rtc = dev_get_drvdata(&spi->dev); 149 149 ··· 157 157 .owner = THIS_MODULE, 158 158 }, 159 159 .probe = max6902_probe, 160 - .remove = __devexit_p(max6902_remove), 160 + .remove = max6902_remove, 161 161 }; 162 162 163 163 module_spi_driver(max6902_driver);
+3 -3
drivers/rtc/rtc-max8907.c
··· 176 176 .set_alarm = max8907_rtc_set_alarm, 177 177 }; 178 178 179 - static int __devinit max8907_rtc_probe(struct platform_device *pdev) 179 + static int max8907_rtc_probe(struct platform_device *pdev) 180 180 { 181 181 struct max8907 *max8907 = dev_get_drvdata(pdev->dev.parent); 182 182 struct max8907_rtc *rtc; ··· 220 220 return ret; 221 221 } 222 222 223 - static int __devexit max8907_rtc_remove(struct platform_device *pdev) 223 + static int max8907_rtc_remove(struct platform_device *pdev) 224 224 { 225 225 struct max8907_rtc *rtc = platform_get_drvdata(pdev); 226 226 ··· 236 236 .owner = THIS_MODULE, 237 237 }, 238 238 .probe = max8907_rtc_probe, 239 - .remove = __devexit_p(max8907_rtc_remove), 239 + .remove = max8907_rtc_remove, 240 240 }; 241 241 module_platform_driver(max8907_rtc_driver); 242 242
+3 -3
drivers/rtc/rtc-max8925.c
··· 247 247 .set_alarm = max8925_rtc_set_alarm, 248 248 }; 249 249 250 - static int __devinit max8925_rtc_probe(struct platform_device *pdev) 250 + static int max8925_rtc_probe(struct platform_device *pdev) 251 251 { 252 252 struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); 253 253 struct max8925_rtc_info *info; ··· 292 292 return ret; 293 293 } 294 294 295 - static int __devexit max8925_rtc_remove(struct platform_device *pdev) 295 + static int max8925_rtc_remove(struct platform_device *pdev) 296 296 { 297 297 struct max8925_rtc_info *info = platform_get_drvdata(pdev); 298 298 ··· 334 334 .pm = &max8925_rtc_pm_ops, 335 335 }, 336 336 .probe = max8925_rtc_probe, 337 - .remove = __devexit_p(max8925_rtc_remove), 337 + .remove = max8925_rtc_remove, 338 338 }; 339 339 340 340 module_platform_driver(max8925_rtc_driver);
+3 -3
drivers/rtc/rtc-max8998.c
··· 249 249 .alarm_irq_enable = max8998_rtc_alarm_irq_enable, 250 250 }; 251 251 252 - static int __devinit max8998_rtc_probe(struct platform_device *pdev) 252 + static int max8998_rtc_probe(struct platform_device *pdev) 253 253 { 254 254 struct max8998_dev *max8998 = dev_get_drvdata(pdev->dev.parent); 255 255 struct max8998_platform_data *pdata = dev_get_platdata(max8998->dev); ··· 298 298 return ret; 299 299 } 300 300 301 - static int __devexit max8998_rtc_remove(struct platform_device *pdev) 301 + static int max8998_rtc_remove(struct platform_device *pdev) 302 302 { 303 303 struct max8998_rtc_info *info = platform_get_drvdata(pdev); 304 304 ··· 323 323 .owner = THIS_MODULE, 324 324 }, 325 325 .probe = max8998_rtc_probe, 326 - .remove = __devexit_p(max8998_rtc_remove), 326 + .remove = max8998_rtc_remove, 327 327 .id_table = max8998_rtc_id, 328 328 }; 329 329
+4 -4
drivers/rtc/rtc-mpc5121.c
··· 306 306 .alarm_irq_enable = mpc5121_rtc_alarm_irq_enable, 307 307 }; 308 308 309 - static int __devinit mpc5121_rtc_probe(struct platform_device *op) 309 + static int mpc5121_rtc_probe(struct platform_device *op) 310 310 { 311 311 struct mpc5121_rtc_data *rtc; 312 312 int err = 0; ··· 382 382 return err; 383 383 } 384 384 385 - static int __devexit mpc5121_rtc_remove(struct platform_device *op) 385 + static int mpc5121_rtc_remove(struct platform_device *op) 386 386 { 387 387 struct mpc5121_rtc_data *rtc = dev_get_drvdata(&op->dev); 388 388 struct mpc5121_rtc_regs __iomem *regs = rtc->regs; ··· 403 403 return 0; 404 404 } 405 405 406 - static struct of_device_id mpc5121_rtc_match[] __devinitdata = { 406 + static struct of_device_id mpc5121_rtc_match[] = { 407 407 { .compatible = "fsl,mpc5121-rtc", }, 408 408 { .compatible = "fsl,mpc5200-rtc", }, 409 409 {}, ··· 416 416 .of_match_table = mpc5121_rtc_match, 417 417 }, 418 418 .probe = mpc5121_rtc_probe, 419 - .remove = __devexit_p(mpc5121_rtc_remove), 419 + .remove = mpc5121_rtc_remove, 420 420 }; 421 421 422 422 module_platform_driver(mpc5121_rtc_driver);
+6 -6
drivers/rtc/rtc-mrst.c
··· 322 322 return IRQ_NONE; 323 323 } 324 324 325 - static int __devinit 326 - vrtc_mrst_do_probe(struct device *dev, struct resource *iomem, int rtc_irq) 325 + static int vrtc_mrst_do_probe(struct device *dev, struct resource *iomem, 326 + int rtc_irq) 327 327 { 328 328 int retval = 0; 329 329 unsigned char rtc_control; ··· 394 394 spin_unlock_irq(&rtc_lock); 395 395 } 396 396 397 - static void __devexit rtc_mrst_do_remove(struct device *dev) 397 + static void rtc_mrst_do_remove(struct device *dev) 398 398 { 399 399 struct mrst_rtc *mrst = dev_get_drvdata(dev); 400 400 struct resource *iomem; ··· 503 503 504 504 #endif 505 505 506 - static int __devinit vrtc_mrst_platform_probe(struct platform_device *pdev) 506 + static int vrtc_mrst_platform_probe(struct platform_device *pdev) 507 507 { 508 508 return vrtc_mrst_do_probe(&pdev->dev, 509 509 platform_get_resource(pdev, IORESOURCE_MEM, 0), 510 510 platform_get_irq(pdev, 0)); 511 511 } 512 512 513 - static int __devexit vrtc_mrst_platform_remove(struct platform_device *pdev) 513 + static int vrtc_mrst_platform_remove(struct platform_device *pdev) 514 514 { 515 515 rtc_mrst_do_remove(&pdev->dev); 516 516 return 0; ··· 528 528 529 529 static struct platform_driver vrtc_mrst_platform_driver = { 530 530 .probe = vrtc_mrst_platform_probe, 531 - .remove = __devexit_p(vrtc_mrst_platform_remove), 531 + .remove = vrtc_mrst_platform_remove, 532 532 .shutdown = vrtc_mrst_platform_shutdown, 533 533 .driver = { 534 534 .name = (char *) driver_name,
+1 -1
drivers/rtc/rtc-mv.c
··· 215 215 .alarm_irq_enable = mv_rtc_alarm_irq_enable, 216 216 }; 217 217 218 - static int __devinit mv_rtc_probe(struct platform_device *pdev) 218 + static int mv_rtc_probe(struct platform_device *pdev) 219 219 { 220 220 struct resource *res; 221 221 struct rtc_plat_data *pdata;
+3 -3
drivers/rtc/rtc-mxc.c
··· 368 368 .alarm_irq_enable = mxc_rtc_alarm_irq_enable, 369 369 }; 370 370 371 - static int __devinit mxc_rtc_probe(struct platform_device *pdev) 371 + static int mxc_rtc_probe(struct platform_device *pdev) 372 372 { 373 373 struct resource *res; 374 374 struct rtc_device *rtc; ··· 460 460 return ret; 461 461 } 462 462 463 - static int __devexit mxc_rtc_remove(struct platform_device *pdev) 463 + static int mxc_rtc_remove(struct platform_device *pdev) 464 464 { 465 465 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); 466 466 ··· 509 509 }, 510 510 .id_table = imx_rtc_devtype, 511 511 .probe = mxc_rtc_probe, 512 - .remove = __devexit_p(mxc_rtc_remove), 512 + .remove = mxc_rtc_remove, 513 513 }; 514 514 515 515 module_platform_driver(mxc_rtc_driver)
+3 -3
drivers/rtc/rtc-nuc900.c
··· 222 222 .alarm_irq_enable = nuc900_alarm_irq_enable, 223 223 }; 224 224 225 - static int __devinit nuc900_rtc_probe(struct platform_device *pdev) 225 + static int nuc900_rtc_probe(struct platform_device *pdev) 226 226 { 227 227 struct resource *res; 228 228 struct nuc900_rtc *nuc900_rtc; ··· 284 284 return err; 285 285 } 286 286 287 - static int __devexit nuc900_rtc_remove(struct platform_device *pdev) 287 + static int nuc900_rtc_remove(struct platform_device *pdev) 288 288 { 289 289 struct nuc900_rtc *nuc900_rtc = platform_get_drvdata(pdev); 290 290 struct resource *res; ··· 304 304 } 305 305 306 306 static struct platform_driver nuc900_rtc_driver = { 307 - .remove = __devexit_p(nuc900_rtc_remove), 307 + .remove = nuc900_rtc_remove, 308 308 .driver = { 309 309 .name = "nuc900-rtc", 310 310 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-pcap.c
··· 139 139 .alarm_irq_enable = pcap_rtc_alarm_irq_enable, 140 140 }; 141 141 142 - static int __devinit pcap_rtc_probe(struct platform_device *pdev) 142 + static int pcap_rtc_probe(struct platform_device *pdev) 143 143 { 144 144 struct pcap_rtc *pcap_rtc; 145 145 int timer_irq, alarm_irq; ··· 183 183 return err; 184 184 } 185 185 186 - static int __devexit pcap_rtc_remove(struct platform_device *pdev) 186 + static int pcap_rtc_remove(struct platform_device *pdev) 187 187 { 188 188 struct pcap_rtc *pcap_rtc = platform_get_drvdata(pdev); 189 189 ··· 196 196 } 197 197 198 198 static struct platform_driver pcap_rtc_driver = { 199 - .remove = __devexit_p(pcap_rtc_remove), 199 + .remove = pcap_rtc_remove, 200 200 .driver = { 201 201 .name = "pcap-rtc", 202 202 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-pcf2123.c
··· 219 219 .set_time = pcf2123_rtc_set_time, 220 220 }; 221 221 222 - static int __devinit pcf2123_probe(struct spi_device *spi) 222 + static int pcf2123_probe(struct spi_device *spi) 223 223 { 224 224 struct rtc_device *rtc; 225 225 struct pcf2123_plat_data *pdata; ··· 319 319 return ret; 320 320 } 321 321 322 - static int __devexit pcf2123_remove(struct spi_device *spi) 322 + static int pcf2123_remove(struct spi_device *spi) 323 323 { 324 324 struct pcf2123_plat_data *pdata = spi->dev.platform_data; 325 325 int i; ··· 345 345 .owner = THIS_MODULE, 346 346 }, 347 347 .probe = pcf2123_probe, 348 - .remove = __devexit_p(pcf2123_remove), 348 + .remove = pcf2123_remove, 349 349 }; 350 350 351 351 module_spi_driver(pcf2123_driver);
+3 -3
drivers/rtc/rtc-pcf50633.c
··· 248 248 rtc->alarm_pending = 1; 249 249 } 250 250 251 - static int __devinit pcf50633_rtc_probe(struct platform_device *pdev) 251 + static int pcf50633_rtc_probe(struct platform_device *pdev) 252 252 { 253 253 struct pcf50633_rtc *rtc; 254 254 ··· 272 272 return 0; 273 273 } 274 274 275 - static int __devexit pcf50633_rtc_remove(struct platform_device *pdev) 275 + static int pcf50633_rtc_remove(struct platform_device *pdev) 276 276 { 277 277 struct pcf50633_rtc *rtc; 278 278 ··· 291 291 .name = "pcf50633-rtc", 292 292 }, 293 293 .probe = pcf50633_rtc_probe, 294 - .remove = __devexit_p(pcf50633_rtc_remove), 294 + .remove = pcf50633_rtc_remove, 295 295 }; 296 296 297 297 module_platform_driver(pcf50633_rtc_driver);
+1 -1
drivers/rtc/rtc-pcf8563.c
··· 296 296 MODULE_DEVICE_TABLE(i2c, pcf8563_id); 297 297 298 298 #ifdef CONFIG_OF 299 - static const struct of_device_id pcf8563_of_match[] __devinitconst = { 299 + static const struct of_device_id pcf8563_of_match[] = { 300 300 { .compatible = "nxp,pcf8563" }, 301 301 {} 302 302 };
+2 -2
drivers/rtc/rtc-pcf8583.c
··· 294 294 return err; 295 295 } 296 296 297 - static int __devexit pcf8583_remove(struct i2c_client *client) 297 + static int pcf8583_remove(struct i2c_client *client) 298 298 { 299 299 struct pcf8583 *pcf8583 = i2c_get_clientdata(client); 300 300 ··· 316 316 .owner = THIS_MODULE, 317 317 }, 318 318 .probe = pcf8583_probe, 319 - .remove = __devexit_p(pcf8583_remove), 319 + .remove = pcf8583_remove, 320 320 .id_table = pcf8583_id, 321 321 }; 322 322
+3 -3
drivers/rtc/rtc-pm8xxx.c
··· 382 382 return IRQ_HANDLED; 383 383 } 384 384 385 - static int __devinit pm8xxx_rtc_probe(struct platform_device *pdev) 385 + static int pm8xxx_rtc_probe(struct platform_device *pdev) 386 386 { 387 387 int rc; 388 388 u8 ctrl_reg; ··· 485 485 return rc; 486 486 } 487 487 488 - static int __devexit pm8xxx_rtc_remove(struct platform_device *pdev) 488 + static int pm8xxx_rtc_remove(struct platform_device *pdev) 489 489 { 490 490 struct pm8xxx_rtc *rtc_dd = platform_get_drvdata(pdev); 491 491 ··· 524 524 525 525 static struct platform_driver pm8xxx_rtc_driver = { 526 526 .probe = pm8xxx_rtc_probe, 527 - .remove = __devexit_p(pm8xxx_rtc_remove), 527 + .remove = pm8xxx_rtc_remove, 528 528 .driver = { 529 529 .name = PM8XXX_RTC_DEV_NAME, 530 530 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-puv3.c
··· 220 220 } 221 221 } 222 222 223 - static int __devexit puv3_rtc_remove(struct platform_device *dev) 223 + static int puv3_rtc_remove(struct platform_device *dev) 224 224 { 225 225 struct rtc_device *rtc = platform_get_drvdata(dev); 226 226 ··· 236 236 return 0; 237 237 } 238 238 239 - static int __devinit puv3_rtc_probe(struct platform_device *pdev) 239 + static int puv3_rtc_probe(struct platform_device *pdev) 240 240 { 241 241 struct rtc_device *rtc; 242 242 struct resource *res; ··· 328 328 329 329 static struct platform_driver puv3_rtc_driver = { 330 330 .probe = puv3_rtc_probe, 331 - .remove = __devexit_p(puv3_rtc_remove), 331 + .remove = puv3_rtc_remove, 332 332 .suspend = puv3_rtc_suspend, 333 333 .resume = puv3_rtc_resume, 334 334 .driver = {
+3 -3
drivers/rtc/rtc-r9701.c
··· 119 119 .set_time = r9701_set_datetime, 120 120 }; 121 121 122 - static int __devinit r9701_probe(struct spi_device *spi) 122 + static int r9701_probe(struct spi_device *spi) 123 123 { 124 124 struct rtc_device *rtc; 125 125 struct rtc_time dt; ··· 164 164 return 0; 165 165 } 166 166 167 - static int __devexit r9701_remove(struct spi_device *spi) 167 + static int r9701_remove(struct spi_device *spi) 168 168 { 169 169 struct rtc_device *rtc = dev_get_drvdata(&spi->dev); 170 170 ··· 178 178 .owner = THIS_MODULE, 179 179 }, 180 180 .probe = r9701_probe, 181 - .remove = __devexit_p(r9701_remove), 181 + .remove = r9701_remove, 182 182 }; 183 183 184 184 module_spi_driver(r9701_driver);
+3 -3
drivers/rtc/rtc-rc5t583.c
··· 211 211 .alarm_irq_enable = rc5t583_rtc_alarm_irq_enable, 212 212 }; 213 213 214 - static int __devinit rc5t583_rtc_probe(struct platform_device *pdev) 214 + static int rc5t583_rtc_probe(struct platform_device *pdev) 215 215 { 216 216 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); 217 217 struct rc5t583_rtc *ricoh_rtc; ··· 271 271 * Disable rc5t583 RTC interrupts. 272 272 * Sets status flag to free. 273 273 */ 274 - static int __devexit rc5t583_rtc_remove(struct platform_device *pdev) 274 + static int rc5t583_rtc_remove(struct platform_device *pdev) 275 275 { 276 276 struct rc5t583_rtc *rc5t583_rtc = dev_get_drvdata(&pdev->dev); 277 277 ··· 317 317 318 318 static struct platform_driver rc5t583_rtc_driver = { 319 319 .probe = rc5t583_rtc_probe, 320 - .remove = __devexit_p(rc5t583_rtc_remove), 320 + .remove = rc5t583_rtc_remove, 321 321 .driver = { 322 322 .owner = THIS_MODULE, 323 323 .name = "rtc-rc5t583",
+2 -2
drivers/rtc/rtc-rs5c313.c
··· 377 377 return 0; 378 378 } 379 379 380 - static int __devexit rs5c313_rtc_remove(struct platform_device *pdev) 380 + static int rs5c313_rtc_remove(struct platform_device *pdev) 381 381 { 382 382 struct rtc_device *rtc = platform_get_drvdata( pdev ); 383 383 ··· 392 392 .owner = THIS_MODULE, 393 393 }, 394 394 .probe = rs5c313_rtc_probe, 395 - .remove = __devexit_p( rs5c313_rtc_remove ), 395 + .remove = rs5c313_rtc_remove, 396 396 }; 397 397 398 398 static int __init rs5c313_rtc_init(void)
+3 -3
drivers/rtc/rtc-rs5c348.c
··· 152 152 153 153 static struct spi_driver rs5c348_driver; 154 154 155 - static int __devinit rs5c348_probe(struct spi_device *spi) 155 + static int rs5c348_probe(struct spi_device *spi) 156 156 { 157 157 int ret; 158 158 struct rtc_device *rtc; ··· 218 218 return ret; 219 219 } 220 220 221 - static int __devexit rs5c348_remove(struct spi_device *spi) 221 + static int rs5c348_remove(struct spi_device *spi) 222 222 { 223 223 struct rs5c348_plat_data *pdata = spi->dev.platform_data; 224 224 struct rtc_device *rtc = pdata->rtc; ··· 235 235 .owner = THIS_MODULE, 236 236 }, 237 237 .probe = rs5c348_probe, 238 - .remove = __devexit_p(rs5c348_remove), 238 + .remove = rs5c348_remove, 239 239 }; 240 240 241 241 module_spi_driver(rs5c348_driver);
+4 -4
drivers/rtc/rtc-rv3029c2.c
··· 385 385 }; 386 386 MODULE_DEVICE_TABLE(i2c, rv3029c2_id); 387 387 388 - static int __devinit 389 - rv3029c2_probe(struct i2c_client *client, const struct i2c_device_id *id) 388 + static int rv3029c2_probe(struct i2c_client *client, 389 + const struct i2c_device_id *id) 390 390 { 391 391 struct rtc_device *rtc; 392 392 int rc = 0; ··· 418 418 return rc; 419 419 } 420 420 421 - static int __devexit rv3029c2_remove(struct i2c_client *client) 421 + static int rv3029c2_remove(struct i2c_client *client) 422 422 { 423 423 struct rtc_device *rtc = i2c_get_clientdata(client); 424 424 ··· 432 432 .name = "rtc-rv3029c2", 433 433 }, 434 434 .probe = rv3029c2_probe, 435 - .remove = __devexit_p(rv3029c2_remove), 435 + .remove = rv3029c2_remove, 436 436 .id_table = rv3029c2_id, 437 437 }; 438 438
+4 -4
drivers/rtc/rtc-rx8025.c
··· 534 534 device_remove_file(dev, &dev_attr_clock_adjust_ppb); 535 535 } 536 536 537 - static int __devinit rx8025_probe(struct i2c_client *client, 538 - const struct i2c_device_id *id) 537 + static int rx8025_probe(struct i2c_client *client, 538 + const struct i2c_device_id *id) 539 539 { 540 540 struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); 541 541 struct rx8025_data *rx8025; ··· 614 614 return err; 615 615 } 616 616 617 - static int __devexit rx8025_remove(struct i2c_client *client) 617 + static int rx8025_remove(struct i2c_client *client) 618 618 { 619 619 struct rx8025_data *rx8025 = i2c_get_clientdata(client); 620 620 struct mutex *lock = &rx8025->rtc->ops_lock; ··· 640 640 .owner = THIS_MODULE, 641 641 }, 642 642 .probe = rx8025_probe, 643 - .remove = __devexit_p(rx8025_remove), 643 + .remove = rx8025_remove, 644 644 .id_table = rx8025_id, 645 645 }; 646 646
+4 -4
drivers/rtc/rtc-rx8581.c
··· 228 228 .set_time = rx8581_rtc_set_time, 229 229 }; 230 230 231 - static int __devinit rx8581_probe(struct i2c_client *client, 232 - const struct i2c_device_id *id) 231 + static int rx8581_probe(struct i2c_client *client, 232 + const struct i2c_device_id *id) 233 233 { 234 234 struct rtc_device *rtc; 235 235 ··· 251 251 return 0; 252 252 } 253 253 254 - static int __devexit rx8581_remove(struct i2c_client *client) 254 + static int rx8581_remove(struct i2c_client *client) 255 255 { 256 256 struct rtc_device *rtc = i2c_get_clientdata(client); 257 257 ··· 272 272 .owner = THIS_MODULE, 273 273 }, 274 274 .probe = rx8581_probe, 275 - .remove = __devexit_p(rx8581_remove), 275 + .remove = rx8581_remove, 276 276 .id_table = rx8581_id, 277 277 }; 278 278
+3 -3
drivers/rtc/rtc-s3c.c
··· 421 421 clk_disable(rtc_clk); 422 422 } 423 423 424 - static int __devexit s3c_rtc_remove(struct platform_device *dev) 424 + static int s3c_rtc_remove(struct platform_device *dev) 425 425 { 426 426 struct rtc_device *rtc = platform_get_drvdata(dev); 427 427 ··· 451 451 return platform_get_device_id(pdev)->driver_data; 452 452 } 453 453 454 - static int __devinit s3c_rtc_probe(struct platform_device *pdev) 454 + static int s3c_rtc_probe(struct platform_device *pdev) 455 455 { 456 456 struct rtc_device *rtc; 457 457 struct rtc_time rtc_tm; ··· 686 686 687 687 static struct platform_driver s3c_rtc_driver = { 688 688 .probe = s3c_rtc_probe, 689 - .remove = __devexit_p(s3c_rtc_remove), 689 + .remove = s3c_rtc_remove, 690 690 .suspend = s3c_rtc_suspend, 691 691 .resume = s3c_rtc_resume, 692 692 .id_table = s3c_rtc_driver_ids,
+4 -4
drivers/rtc/rtc-snvs.c
··· 241 241 return events ? IRQ_HANDLED : IRQ_NONE; 242 242 } 243 243 244 - static int __devinit snvs_rtc_probe(struct platform_device *pdev) 244 + static int snvs_rtc_probe(struct platform_device *pdev) 245 245 { 246 246 struct snvs_rtc_data *data; 247 247 struct resource *res; ··· 294 294 return 0; 295 295 } 296 296 297 - static int __devexit snvs_rtc_remove(struct platform_device *pdev) 297 + static int snvs_rtc_remove(struct platform_device *pdev) 298 298 { 299 299 struct snvs_rtc_data *data = platform_get_drvdata(pdev); 300 300 ··· 327 327 328 328 static SIMPLE_DEV_PM_OPS(snvs_rtc_pm_ops, snvs_rtc_suspend, snvs_rtc_resume); 329 329 330 - static const struct of_device_id __devinitconst snvs_dt_ids[] = { 330 + static const struct of_device_id snvs_dt_ids[] = { 331 331 { .compatible = "fsl,sec-v4.0-mon-rtc-lp", }, 332 332 { /* sentinel */ } 333 333 }; ··· 341 341 .of_match_table = snvs_dt_ids, 342 342 }, 343 343 .probe = snvs_rtc_probe, 344 - .remove = __devexit_p(snvs_rtc_remove), 344 + .remove = snvs_rtc_remove, 345 345 }; 346 346 module_platform_driver(snvs_rtc_driver); 347 347
+3 -3
drivers/rtc/rtc-spear.c
··· 351 351 .alarm_irq_enable = spear_alarm_irq_enable, 352 352 }; 353 353 354 - static int __devinit spear_rtc_probe(struct platform_device *pdev) 354 + static int spear_rtc_probe(struct platform_device *pdev) 355 355 { 356 356 struct resource *res; 357 357 struct spear_rtc_config *config; ··· 425 425 return status; 426 426 } 427 427 428 - static int __devexit spear_rtc_remove(struct platform_device *pdev) 428 + static int spear_rtc_remove(struct platform_device *pdev) 429 429 { 430 430 struct spear_rtc_config *config = platform_get_drvdata(pdev); 431 431 ··· 499 499 500 500 static struct platform_driver spear_rtc_driver = { 501 501 .probe = spear_rtc_probe, 502 - .remove = __devexit_p(spear_rtc_remove), 502 + .remove = spear_rtc_remove, 503 503 .suspend = spear_rtc_suspend, 504 504 .resume = spear_rtc_resume, 505 505 .shutdown = spear_rtc_shutdown,
+3 -3
drivers/rtc/rtc-stk17ta8.c
··· 285 285 .write = stk17ta8_nvram_write, 286 286 }; 287 287 288 - static int __devinit stk17ta8_rtc_probe(struct platform_device *pdev) 288 + static int stk17ta8_rtc_probe(struct platform_device *pdev) 289 289 { 290 290 struct resource *res; 291 291 unsigned int cal; ··· 347 347 return ret; 348 348 } 349 349 350 - static int __devexit stk17ta8_rtc_remove(struct platform_device *pdev) 350 + static int stk17ta8_rtc_remove(struct platform_device *pdev) 351 351 { 352 352 struct rtc_plat_data *pdata = platform_get_drvdata(pdev); 353 353 ··· 363 363 364 364 static struct platform_driver stk17ta8_rtc_driver = { 365 365 .probe = stk17ta8_rtc_probe, 366 - .remove = __devexit_p(stk17ta8_rtc_remove), 366 + .remove = stk17ta8_rtc_remove, 367 367 .driver = { 368 368 .name = "stk17ta8", 369 369 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-tegra.c
··· 303 303 .alarm_irq_enable = tegra_rtc_alarm_irq_enable, 304 304 }; 305 305 306 - static int __devinit tegra_rtc_probe(struct platform_device *pdev) 306 + static int tegra_rtc_probe(struct platform_device *pdev) 307 307 { 308 308 struct tegra_rtc_info *info; 309 309 struct resource *res; ··· 375 375 return ret; 376 376 } 377 377 378 - static int __devexit tegra_rtc_remove(struct platform_device *pdev) 378 + static int tegra_rtc_remove(struct platform_device *pdev) 379 379 { 380 380 struct tegra_rtc_info *info = platform_get_drvdata(pdev); 381 381 ··· 435 435 436 436 MODULE_ALIAS("platform:tegra_rtc"); 437 437 static struct platform_driver tegra_rtc_driver = { 438 - .remove = __devexit_p(tegra_rtc_remove), 438 + .remove = tegra_rtc_remove, 439 439 .shutdown = tegra_rtc_shutdown, 440 440 .driver = { 441 441 .name = "tegra_rtc",
+2 -2
drivers/rtc/rtc-test.c
··· 119 119 return err; 120 120 } 121 121 122 - static int __devexit test_remove(struct platform_device *plat_dev) 122 + static int test_remove(struct platform_device *plat_dev) 123 123 { 124 124 struct rtc_device *rtc = platform_get_drvdata(plat_dev); 125 125 ··· 131 131 132 132 static struct platform_driver test_driver = { 133 133 .probe = test_probe, 134 - .remove = __devexit_p(test_remove), 134 + .remove = test_remove, 135 135 .driver = { 136 136 .name = "rtc-test", 137 137 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-tile.c
··· 76 76 /* 77 77 * Device probe routine. 78 78 */ 79 - static int __devinit tile_rtc_probe(struct platform_device *dev) 79 + static int tile_rtc_probe(struct platform_device *dev) 80 80 { 81 81 struct rtc_device *rtc; 82 82 ··· 94 94 /* 95 95 * Device cleanup routine. 96 96 */ 97 - static int __devexit tile_rtc_remove(struct platform_device *dev) 97 + static int tile_rtc_remove(struct platform_device *dev) 98 98 { 99 99 struct rtc_device *rtc = platform_get_drvdata(dev); 100 100 ··· 112 112 .owner = THIS_MODULE, 113 113 }, 114 114 .probe = tile_rtc_probe, 115 - .remove = __devexit_p(tile_rtc_remove), 115 + .remove = tile_rtc_remove, 116 116 }; 117 117 118 118 /*
+3 -3
drivers/rtc/rtc-tps65910.c
··· 222 222 .alarm_irq_enable = tps65910_rtc_alarm_irq_enable, 223 223 }; 224 224 225 - static int __devinit tps65910_rtc_probe(struct platform_device *pdev) 225 + static int tps65910_rtc_probe(struct platform_device *pdev) 226 226 { 227 227 struct tps65910 *tps65910 = NULL; 228 228 struct tps65910_rtc *tps_rtc = NULL; ··· 292 292 * Disable tps65910 RTC interrupts. 293 293 * Sets status flag to free. 294 294 */ 295 - static int __devexit tps65910_rtc_remove(struct platform_device *pdev) 295 + static int tps65910_rtc_remove(struct platform_device *pdev) 296 296 { 297 297 /* leave rtc running, but disable irqs */ 298 298 struct tps65910_rtc *tps_rtc = platform_get_drvdata(pdev); ··· 342 342 343 343 static struct platform_driver tps65910_rtc_driver = { 344 344 .probe = tps65910_rtc_probe, 345 - .remove = __devexit_p(tps65910_rtc_remove), 345 + .remove = tps65910_rtc_remove, 346 346 .driver = { 347 347 .owner = THIS_MODULE, 348 348 .name = "tps65910-rtc",
+3 -3
drivers/rtc/rtc-twl.c
··· 458 458 459 459 /*----------------------------------------------------------------------*/ 460 460 461 - static int __devinit twl_rtc_probe(struct platform_device *pdev) 461 + static int twl_rtc_probe(struct platform_device *pdev) 462 462 { 463 463 struct rtc_device *rtc; 464 464 int ret = -EINVAL; ··· 535 535 * Disable all TWL RTC module interrupts. 536 536 * Sets status flag to free. 537 537 */ 538 - static int __devexit twl_rtc_remove(struct platform_device *pdev) 538 + static int twl_rtc_remove(struct platform_device *pdev) 539 539 { 540 540 /* leave rtc running, but disable irqs */ 541 541 struct rtc_device *rtc = platform_get_drvdata(pdev); ··· 597 597 598 598 static struct platform_driver twl4030rtc_driver = { 599 599 .probe = twl_rtc_probe, 600 - .remove = __devexit_p(twl_rtc_remove), 600 + .remove = twl_rtc_remove, 601 601 .shutdown = twl_rtc_shutdown, 602 602 .suspend = twl_rtc_suspend, 603 603 .resume = twl_rtc_resume,
+3 -3
drivers/rtc/rtc-vr41xx.c
··· 280 280 .set_alarm = vr41xx_rtc_set_alarm, 281 281 }; 282 282 283 - static int __devinit rtc_probe(struct platform_device *pdev) 283 + static int rtc_probe(struct platform_device *pdev) 284 284 { 285 285 struct resource *res; 286 286 struct rtc_device *rtc; ··· 373 373 return retval; 374 374 } 375 375 376 - static int __devexit rtc_remove(struct platform_device *pdev) 376 + static int rtc_remove(struct platform_device *pdev) 377 377 { 378 378 struct rtc_device *rtc; 379 379 ··· 398 398 399 399 static struct platform_driver rtc_platform_driver = { 400 400 .probe = rtc_probe, 401 - .remove = __devexit_p(rtc_remove), 401 + .remove = rtc_remove, 402 402 .driver = { 403 403 .name = rtc_name, 404 404 .owner = THIS_MODULE,
+3 -3
drivers/rtc/rtc-vt8500.c
··· 205 205 .alarm_irq_enable = vt8500_alarm_irq_enable, 206 206 }; 207 207 208 - static int __devinit vt8500_rtc_probe(struct platform_device *pdev) 208 + static int vt8500_rtc_probe(struct platform_device *pdev) 209 209 { 210 210 struct vt8500_rtc *vt8500_rtc; 211 211 int ret; ··· 279 279 return ret; 280 280 } 281 281 282 - static int __devexit vt8500_rtc_remove(struct platform_device *pdev) 282 + static int vt8500_rtc_remove(struct platform_device *pdev) 283 283 { 284 284 struct vt8500_rtc *vt8500_rtc = platform_get_drvdata(pdev); 285 285 ··· 305 305 306 306 static struct platform_driver vt8500_rtc_driver = { 307 307 .probe = vt8500_rtc_probe, 308 - .remove = __devexit_p(vt8500_rtc_remove), 308 + .remove = vt8500_rtc_remove, 309 309 .driver = { 310 310 .name = "vt8500-rtc", 311 311 .owner = THIS_MODULE,
+2 -2
drivers/rtc/rtc-wm831x.c
··· 459 459 return ret; 460 460 } 461 461 462 - static int __devexit wm831x_rtc_remove(struct platform_device *pdev) 462 + static int wm831x_rtc_remove(struct platform_device *pdev) 463 463 { 464 464 struct wm831x_rtc *wm831x_rtc = platform_get_drvdata(pdev); 465 465 int alm_irq = platform_get_irq_byname(pdev, "ALM"); ··· 483 483 484 484 static struct platform_driver wm831x_rtc_driver = { 485 485 .probe = wm831x_rtc_probe, 486 - .remove = __devexit_p(wm831x_rtc_remove), 486 + .remove = wm831x_rtc_remove, 487 487 .driver = { 488 488 .name = "wm831x-rtc", 489 489 .pm = &wm831x_rtc_pm_ops,
+2 -2
drivers/rtc/rtc-wm8350.c
··· 459 459 return 0; 460 460 } 461 461 462 - static int __devexit wm8350_rtc_remove(struct platform_device *pdev) 462 + static int wm8350_rtc_remove(struct platform_device *pdev) 463 463 { 464 464 struct wm8350 *wm8350 = platform_get_drvdata(pdev); 465 465 struct wm8350_rtc *wm_rtc = &wm8350->rtc; ··· 479 479 480 480 static struct platform_driver wm8350_rtc_driver = { 481 481 .probe = wm8350_rtc_probe, 482 - .remove = __devexit_p(wm8350_rtc_remove), 482 + .remove = wm8350_rtc_remove, 483 483 .driver = { 484 484 .name = "wm8350-rtc", 485 485 .pm = &wm8350_rtc_pm_ops,