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

Drivers: macintosh: remove __dev* attributes.

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

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

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

Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+40 -40
+3 -3
drivers/macintosh/macio_asic.c
··· 679 679 680 680 #ifdef CONFIG_PCI 681 681 682 - static int __devinit macio_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 682 + static int macio_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 683 683 { 684 684 struct device_node* np; 685 685 struct macio_chip* chip; ··· 739 739 return 0; 740 740 } 741 741 742 - static void __devexit macio_pci_remove(struct pci_dev* pdev) 742 + static void macio_pci_remove(struct pci_dev* pdev) 743 743 { 744 744 panic("removing of macio-asic not supported !\n"); 745 745 } ··· 748 748 * MacIO is matched against any Apple ID, it's probe() function 749 749 * will then decide wether it applies or not 750 750 */ 751 - static const struct pci_device_id __devinitconst pci_ids[] = { { 751 + static const struct pci_device_id pci_ids[] = { { 752 752 .vendor = PCI_VENDOR_ID_APPLE, 753 753 .device = PCI_ANY_ID, 754 754 .subvendor = PCI_ANY_ID,
+2 -1
drivers/macintosh/mediabay.c
··· 556 556 return 0; 557 557 } 558 558 559 - static int __devinit media_bay_attach(struct macio_dev *mdev, const struct of_device_id *match) 559 + static int media_bay_attach(struct macio_dev *mdev, 560 + const struct of_device_id *match) 560 561 { 561 562 struct media_bay_info* bay; 562 563 u32 __iomem *regbase;
+6 -6
drivers/macintosh/rack-meter.c
··· 253 253 msecs_to_jiffies(CPU_SAMPLING_RATE)); 254 254 } 255 255 256 - static void __devinit rackmeter_init_cpu_sniffer(struct rackmeter *rm) 256 + static void rackmeter_init_cpu_sniffer(struct rackmeter *rm) 257 257 { 258 258 unsigned int cpu; 259 259 ··· 287 287 cancel_delayed_work_sync(&rm->cpu[1].sniffer); 288 288 } 289 289 290 - static int __devinit rackmeter_setup(struct rackmeter *rm) 290 + static int rackmeter_setup(struct rackmeter *rm) 291 291 { 292 292 pr_debug("rackmeter: setting up i2s..\n"); 293 293 rackmeter_setup_i2s(rm); ··· 362 362 return IRQ_HANDLED; 363 363 } 364 364 365 - static int __devinit rackmeter_probe(struct macio_dev* mdev, 366 - const struct of_device_id *match) 365 + static int rackmeter_probe(struct macio_dev* mdev, 366 + const struct of_device_id *match) 367 367 { 368 368 struct device_node *i2s = NULL, *np = NULL; 369 369 struct rackmeter *rm = NULL; ··· 521 521 return rc; 522 522 } 523 523 524 - static int __devexit rackmeter_remove(struct macio_dev* mdev) 524 + static int rackmeter_remove(struct macio_dev* mdev) 525 525 { 526 526 struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev); 527 527 ··· 588 588 .of_match_table = rackmeter_match, 589 589 }, 590 590 .probe = rackmeter_probe, 591 - .remove = __devexit_p(rackmeter_remove), 591 + .remove = rackmeter_remove, 592 592 .shutdown = rackmeter_shutdown, 593 593 }; 594 594
+9 -9
drivers/macintosh/windfarm_ad7417_sensor.c
··· 177 177 .owner = THIS_MODULE, 178 178 }; 179 179 180 - static void __devinit wf_ad7417_add_sensor(struct wf_ad7417_priv *pv, 181 - int index, const char *name, 182 - const struct wf_sensor_ops *ops) 180 + static void wf_ad7417_add_sensor(struct wf_ad7417_priv *pv, 181 + int index, const char *name, 182 + const struct wf_sensor_ops *ops) 183 183 { 184 184 pv->sensors[index].name = kasprintf(GFP_KERNEL, "%s-%d", name, pv->cpu); 185 185 pv->sensors[index].priv = pv; ··· 188 188 kref_get(&pv->ref); 189 189 } 190 190 191 - static void __devinit wf_ad7417_init_chip(struct wf_ad7417_priv *pv) 191 + static void wf_ad7417_init_chip(struct wf_ad7417_priv *pv) 192 192 { 193 193 int rc; 194 194 u8 buf[2]; ··· 230 230 pv->config = config; 231 231 } 232 232 233 - static int __devinit wf_ad7417_probe(struct i2c_client *client, 234 - const struct i2c_device_id *id) 233 + static int wf_ad7417_probe(struct i2c_client *client, 234 + const struct i2c_device_id *id) 235 235 { 236 236 struct wf_ad7417_priv *pv; 237 237 const struct mpu_data *mpu; ··· 290 290 return 0; 291 291 } 292 292 293 - static int __devexit wf_ad7417_remove(struct i2c_client *client) 293 + static int wf_ad7417_remove(struct i2c_client *client) 294 294 { 295 295 struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev); 296 296 int i; ··· 322 322 .id_table = wf_ad7417_id, 323 323 }; 324 324 325 - static int __devinit wf_ad7417_init(void) 325 + static int wf_ad7417_init(void) 326 326 { 327 327 /* This is only supported on these machines */ 328 328 if (!of_machine_is_compatible("PowerMac7,2") && ··· 333 333 return i2c_add_driver(&wf_ad7417_driver); 334 334 } 335 335 336 - static void __devexit wf_ad7417_exit(void) 336 + static void wf_ad7417_exit(void) 337 337 { 338 338 i2c_del_driver(&wf_ad7417_driver); 339 339 }
+10 -11
drivers/macintosh/windfarm_fcu_controls.c
··· 282 282 .owner = THIS_MODULE, 283 283 }; 284 284 285 - static void __devinit wf_fcu_get_pump_minmax(struct wf_fcu_fan *fan) 285 + static void wf_fcu_get_pump_minmax(struct wf_fcu_fan *fan) 286 286 { 287 287 const struct mpu_data *mpu = wf_get_mpu(0); 288 288 u16 pump_min = 0, pump_max = 0xffff; ··· 317 317 fan->ctrl.name, pump_min, pump_max); 318 318 } 319 319 320 - static void __devinit wf_fcu_get_rpmfan_minmax(struct wf_fcu_fan *fan) 320 + static void wf_fcu_get_rpmfan_minmax(struct wf_fcu_fan *fan) 321 321 { 322 322 struct wf_fcu_priv *pv = fan->fcu_priv; 323 323 const struct mpu_data *mpu0 = wf_get_mpu(0); ··· 359 359 fan->ctrl.name, fan->min, fan->max); 360 360 } 361 361 362 - static void __devinit wf_fcu_add_fan(struct wf_fcu_priv *pv, 363 - const char *name, 364 - int type, int id) 362 + static void wf_fcu_add_fan(struct wf_fcu_priv *pv, const char *name, 363 + int type, int id) 365 364 { 366 365 struct wf_fcu_fan *fan; 367 366 ··· 398 399 kref_get(&pv->ref); 399 400 } 400 401 401 - static void __devinit wf_fcu_lookup_fans(struct wf_fcu_priv *pv) 402 + static void wf_fcu_lookup_fans(struct wf_fcu_priv *pv) 402 403 { 403 404 /* Translation of device-tree location properties to 404 405 * windfarm fan names ··· 480 481 } 481 482 } 482 483 483 - static void __devinit wf_fcu_default_fans(struct wf_fcu_priv *pv) 484 + static void wf_fcu_default_fans(struct wf_fcu_priv *pv) 484 485 { 485 486 /* We only support the default fans for PowerMac7,2 */ 486 487 if (!of_machine_is_compatible("PowerMac7,2")) ··· 495 496 wf_fcu_add_fan(pv, "cpu-rear-fan-1", FCU_FAN_RPM, 6); 496 497 } 497 498 498 - static int __devinit wf_fcu_init_chip(struct wf_fcu_priv *pv) 499 + static int wf_fcu_init_chip(struct wf_fcu_priv *pv) 499 500 { 500 501 unsigned char buf = 0xff; 501 502 int rc; ··· 517 518 return 0; 518 519 } 519 520 520 - static int __devinit wf_fcu_probe(struct i2c_client *client, 521 - const struct i2c_device_id *id) 521 + static int wf_fcu_probe(struct i2c_client *client, 522 + const struct i2c_device_id *id) 522 523 { 523 524 struct wf_fcu_priv *pv; 524 525 ··· 563 564 return 0; 564 565 } 565 566 566 - static int __devexit wf_fcu_remove(struct i2c_client *client) 567 + static int wf_fcu_remove(struct i2c_client *client) 567 568 { 568 569 struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev); 569 570 struct wf_fcu_fan *fan;
+2 -2
drivers/macintosh/windfarm_pm112.c
··· 656 656 return 0; 657 657 } 658 658 659 - static int __devexit wf_pm112_remove(struct platform_device *dev) 659 + static int wf_pm112_remove(struct platform_device *dev) 660 660 { 661 661 wf_unregister_client(&pm112_events); 662 662 /* should release all sensors and controls */ ··· 665 665 666 666 static struct platform_driver wf_pm112_driver = { 667 667 .probe = wf_pm112_probe, 668 - .remove = __devexit_p(wf_pm112_remove), 668 + .remove = wf_pm112_remove, 669 669 .driver = { 670 670 .name = "windfarm", 671 671 .owner = THIS_MODULE,
+2 -2
drivers/macintosh/windfarm_pm121.c
··· 987 987 return 0; 988 988 } 989 989 990 - static int __devexit pm121_remove(struct platform_device *ddev) 990 + static int pm121_remove(struct platform_device *ddev) 991 991 { 992 992 wf_unregister_client(&pm121_events); 993 993 return 0; ··· 995 995 996 996 static struct platform_driver pm121_driver = { 997 997 .probe = pm121_probe, 998 - .remove = __devexit_p(pm121_remove), 998 + .remove = pm121_remove, 999 999 .driver = { 1000 1000 .name = "windfarm", 1001 1001 .bus = &platform_bus_type,
+1 -1
drivers/macintosh/windfarm_pm72.c
··· 776 776 return 0; 777 777 } 778 778 779 - static int __devexit wf_pm72_remove(struct platform_device *dev) 779 + static int wf_pm72_remove(struct platform_device *dev) 780 780 { 781 781 wf_unregister_client(&pm72_events); 782 782
+2 -2
drivers/macintosh/windfarm_pm81.c
··· 720 720 return 0; 721 721 } 722 722 723 - static int __devexit wf_smu_remove(struct platform_device *ddev) 723 + static int wf_smu_remove(struct platform_device *ddev) 724 724 { 725 725 wf_unregister_client(&wf_smu_events); 726 726 ··· 763 763 764 764 static struct platform_driver wf_smu_driver = { 765 765 .probe = wf_smu_probe, 766 - .remove = __devexit_p(wf_smu_remove), 766 + .remove = wf_smu_remove, 767 767 .driver = { 768 768 .name = "windfarm", 769 769 .owner = THIS_MODULE,
+2 -2
drivers/macintosh/windfarm_pm91.c
··· 642 642 return 0; 643 643 } 644 644 645 - static int __devexit wf_smu_remove(struct platform_device *ddev) 645 + static int wf_smu_remove(struct platform_device *ddev) 646 646 { 647 647 wf_unregister_client(&wf_smu_events); 648 648 ··· 692 692 693 693 static struct platform_driver wf_smu_driver = { 694 694 .probe = wf_smu_probe, 695 - .remove = __devexit_p(wf_smu_remove), 695 + .remove = wf_smu_remove, 696 696 .driver = { 697 697 .name = "windfarm", 698 698 .owner = THIS_MODULE,
+1 -1
drivers/macintosh/windfarm_rm31.c
··· 669 669 return 0; 670 670 } 671 671 672 - static int __devexit wf_rm31_remove(struct platform_device *dev) 672 + static int wf_rm31_remove(struct platform_device *dev) 673 673 { 674 674 wf_unregister_client(&rm31_events); 675 675