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