Skip to content

Commit 1da42fb

Browse files
committed
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>
1 parent 612b95c commit 1da42fb

11 files changed

Lines changed: 40 additions & 40 deletions

‎drivers/macintosh/macio_asic.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ void macio_release_resources(struct macio_dev *dev)
679679

680680
#ifdef CONFIG_PCI
681681

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)
683683
{
684684
struct device_node* np;
685685
struct macio_chip* chip;
@@ -739,7 +739,7 @@ static int __devinit macio_pci_probe(struct pci_dev *pdev, const struct pci_devi
739739
return 0;
740740
}
741741

742-
static void __devexit macio_pci_remove(struct pci_dev* pdev)
742+
static void macio_pci_remove(struct pci_dev* pdev)
743743
{
744744
panic("removing of macio-asic not supported !\n");
745745
}
@@ -748,7 +748,7 @@ static void __devexit macio_pci_remove(struct pci_dev* pdev)
748748
* MacIO is matched against any Apple ID, it's probe() function
749749
* will then decide wether it applies or not
750750
*/
751-
static const struct pci_device_id __devinitconst pci_ids[] = { {
751+
static const struct pci_device_id pci_ids[] = { {
752752
.vendor = PCI_VENDOR_ID_APPLE,
753753
.device = PCI_ANY_ID,
754754
.subvendor = PCI_ANY_ID,

‎drivers/macintosh/mediabay.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,8 @@ static int media_bay_task(void *x)
556556
return 0;
557557
}
558558

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)
560561
{
561562
struct media_bay_info* bay;
562563
u32 __iomem *regbase;

‎drivers/macintosh/rack-meter.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static void rackmeter_do_timer(struct work_struct *work)
253253
msecs_to_jiffies(CPU_SAMPLING_RATE));
254254
}
255255

256-
static void __devinit rackmeter_init_cpu_sniffer(struct rackmeter *rm)
256+
static void rackmeter_init_cpu_sniffer(struct rackmeter *rm)
257257
{
258258
unsigned int cpu;
259259

@@ -287,7 +287,7 @@ static void rackmeter_stop_cpu_sniffer(struct rackmeter *rm)
287287
cancel_delayed_work_sync(&rm->cpu[1].sniffer);
288288
}
289289

290-
static int __devinit rackmeter_setup(struct rackmeter *rm)
290+
static int rackmeter_setup(struct rackmeter *rm)
291291
{
292292
pr_debug("rackmeter: setting up i2s..\n");
293293
rackmeter_setup_i2s(rm);
@@ -362,8 +362,8 @@ static irqreturn_t rackmeter_irq(int irq, void *arg)
362362
return IRQ_HANDLED;
363363
}
364364

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)
367367
{
368368
struct device_node *i2s = NULL, *np = NULL;
369369
struct rackmeter *rm = NULL;
@@ -521,7 +521,7 @@ static int __devinit rackmeter_probe(struct macio_dev* mdev,
521521
return rc;
522522
}
523523

524-
static int __devexit rackmeter_remove(struct macio_dev* mdev)
524+
static int rackmeter_remove(struct macio_dev* mdev)
525525
{
526526
struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev);
527527

@@ -588,7 +588,7 @@ static struct macio_driver rackmeter_driver = {
588588
.of_match_table = rackmeter_match,
589589
},
590590
.probe = rackmeter_probe,
591-
.remove = __devexit_p(rackmeter_remove),
591+
.remove = rackmeter_remove,
592592
.shutdown = rackmeter_shutdown,
593593
};
594594

‎drivers/macintosh/windfarm_ad7417_sensor.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ static const struct wf_sensor_ops wf_ad7417_adc_ops = {
177177
.owner = THIS_MODULE,
178178
};
179179

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)
183183
{
184184
pv->sensors[index].name = kasprintf(GFP_KERNEL, "%s-%d", name, pv->cpu);
185185
pv->sensors[index].priv = pv;
@@ -188,7 +188,7 @@ static void __devinit wf_ad7417_add_sensor(struct wf_ad7417_priv *pv,
188188
kref_get(&pv->ref);
189189
}
190190

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)
192192
{
193193
int rc;
194194
u8 buf[2];
@@ -230,8 +230,8 @@ static void __devinit wf_ad7417_init_chip(struct wf_ad7417_priv *pv)
230230
pv->config = config;
231231
}
232232

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)
235235
{
236236
struct wf_ad7417_priv *pv;
237237
const struct mpu_data *mpu;
@@ -290,7 +290,7 @@ static int __devinit wf_ad7417_probe(struct i2c_client *client,
290290
return 0;
291291
}
292292

293-
static int __devexit wf_ad7417_remove(struct i2c_client *client)
293+
static int wf_ad7417_remove(struct i2c_client *client)
294294
{
295295
struct wf_ad7417_priv *pv = dev_get_drvdata(&client->dev);
296296
int i;
@@ -322,7 +322,7 @@ static struct i2c_driver wf_ad7417_driver = {
322322
.id_table = wf_ad7417_id,
323323
};
324324

325-
static int __devinit wf_ad7417_init(void)
325+
static int wf_ad7417_init(void)
326326
{
327327
/* This is only supported on these machines */
328328
if (!of_machine_is_compatible("PowerMac7,2") &&
@@ -333,7 +333,7 @@ static int __devinit wf_ad7417_init(void)
333333
return i2c_add_driver(&wf_ad7417_driver);
334334
}
335335

336-
static void __devexit wf_ad7417_exit(void)
336+
static void wf_ad7417_exit(void)
337337
{
338338
i2c_del_driver(&wf_ad7417_driver);
339339
}

‎drivers/macintosh/windfarm_fcu_controls.c‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static const struct wf_control_ops wf_fcu_fan_pwm_ops = {
282282
.owner = THIS_MODULE,
283283
};
284284

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)
286286
{
287287
const struct mpu_data *mpu = wf_get_mpu(0);
288288
u16 pump_min = 0, pump_max = 0xffff;
@@ -317,7 +317,7 @@ static void __devinit wf_fcu_get_pump_minmax(struct wf_fcu_fan *fan)
317317
fan->ctrl.name, pump_min, pump_max);
318318
}
319319

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)
321321
{
322322
struct wf_fcu_priv *pv = fan->fcu_priv;
323323
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)
359359
fan->ctrl.name, fan->min, fan->max);
360360
}
361361

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)
365364
{
366365
struct wf_fcu_fan *fan;
367366

@@ -399,7 +398,7 @@ static void __devinit wf_fcu_add_fan(struct wf_fcu_priv *pv,
399398
kref_get(&pv->ref);
400399
}
401400

402-
static void __devinit wf_fcu_lookup_fans(struct wf_fcu_priv *pv)
401+
static void wf_fcu_lookup_fans(struct wf_fcu_priv *pv)
403402
{
404403
/* Translation of device-tree location properties to
405404
* windfarm fan names
@@ -481,7 +480,7 @@ static void __devinit wf_fcu_lookup_fans(struct wf_fcu_priv *pv)
481480
}
482481
}
483482

484-
static void __devinit wf_fcu_default_fans(struct wf_fcu_priv *pv)
483+
static void wf_fcu_default_fans(struct wf_fcu_priv *pv)
485484
{
486485
/* We only support the default fans for PowerMac7,2 */
487486
if (!of_machine_is_compatible("PowerMac7,2"))
@@ -496,7 +495,7 @@ static void __devinit wf_fcu_default_fans(struct wf_fcu_priv *pv)
496495
wf_fcu_add_fan(pv, "cpu-rear-fan-1", FCU_FAN_RPM, 6);
497496
}
498497

499-
static int __devinit wf_fcu_init_chip(struct wf_fcu_priv *pv)
498+
static int wf_fcu_init_chip(struct wf_fcu_priv *pv)
500499
{
501500
unsigned char buf = 0xff;
502501
int rc;
@@ -518,8 +517,8 @@ static int __devinit wf_fcu_init_chip(struct wf_fcu_priv *pv)
518517
return 0;
519518
}
520519

521-
static int __devinit wf_fcu_probe(struct i2c_client *client,
522-
const struct i2c_device_id *id)
520+
static int wf_fcu_probe(struct i2c_client *client,
521+
const struct i2c_device_id *id)
523522
{
524523
struct wf_fcu_priv *pv;
525524

@@ -564,7 +563,7 @@ static int __devinit wf_fcu_probe(struct i2c_client *client,
564563
return 0;
565564
}
566565

567-
static int __devexit wf_fcu_remove(struct i2c_client *client)
566+
static int wf_fcu_remove(struct i2c_client *client)
568567
{
569568
struct wf_fcu_priv *pv = dev_get_drvdata(&client->dev);
570569
struct wf_fcu_fan *fan;

‎drivers/macintosh/windfarm_pm112.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ static int wf_pm112_probe(struct platform_device *dev)
656656
return 0;
657657
}
658658

659-
static int __devexit wf_pm112_remove(struct platform_device *dev)
659+
static int wf_pm112_remove(struct platform_device *dev)
660660
{
661661
wf_unregister_client(&pm112_events);
662662
/* should release all sensors and controls */
@@ -665,7 +665,7 @@ static int __devexit wf_pm112_remove(struct platform_device *dev)
665665

666666
static struct platform_driver wf_pm112_driver = {
667667
.probe = wf_pm112_probe,
668-
.remove = __devexit_p(wf_pm112_remove),
668+
.remove = wf_pm112_remove,
669669
.driver = {
670670
.name = "windfarm",
671671
.owner = THIS_MODULE,

‎drivers/macintosh/windfarm_pm121.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,15 +987,15 @@ static int pm121_probe(struct platform_device *ddev)
987987
return 0;
988988
}
989989

990-
static int __devexit pm121_remove(struct platform_device *ddev)
990+
static int pm121_remove(struct platform_device *ddev)
991991
{
992992
wf_unregister_client(&pm121_events);
993993
return 0;
994994
}
995995

996996
static struct platform_driver pm121_driver = {
997997
.probe = pm121_probe,
998-
.remove = __devexit_p(pm121_remove),
998+
.remove = pm121_remove,
999999
.driver = {
10001000
.name = "windfarm",
10011001
.bus = &platform_bus_type,

‎drivers/macintosh/windfarm_pm72.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ static int wf_pm72_probe(struct platform_device *dev)
776776
return 0;
777777
}
778778

779-
static int __devexit wf_pm72_remove(struct platform_device *dev)
779+
static int wf_pm72_remove(struct platform_device *dev)
780780
{
781781
wf_unregister_client(&pm72_events);
782782

‎drivers/macintosh/windfarm_pm81.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ static int wf_smu_probe(struct platform_device *ddev)
720720
return 0;
721721
}
722722

723-
static int __devexit wf_smu_remove(struct platform_device *ddev)
723+
static int wf_smu_remove(struct platform_device *ddev)
724724
{
725725
wf_unregister_client(&wf_smu_events);
726726

@@ -763,7 +763,7 @@ static int __devexit wf_smu_remove(struct platform_device *ddev)
763763

764764
static struct platform_driver wf_smu_driver = {
765765
.probe = wf_smu_probe,
766-
.remove = __devexit_p(wf_smu_remove),
766+
.remove = wf_smu_remove,
767767
.driver = {
768768
.name = "windfarm",
769769
.owner = THIS_MODULE,

‎drivers/macintosh/windfarm_pm91.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ static int wf_smu_probe(struct platform_device *ddev)
642642
return 0;
643643
}
644644

645-
static int __devexit wf_smu_remove(struct platform_device *ddev)
645+
static int wf_smu_remove(struct platform_device *ddev)
646646
{
647647
wf_unregister_client(&wf_smu_events);
648648

@@ -692,7 +692,7 @@ static int __devexit wf_smu_remove(struct platform_device *ddev)
692692

693693
static struct platform_driver wf_smu_driver = {
694694
.probe = wf_smu_probe,
695-
.remove = __devexit_p(wf_smu_remove),
695+
.remove = wf_smu_remove,
696696
.driver = {
697697
.name = "windfarm",
698698
.owner = THIS_MODULE,

0 commit comments

Comments
 (0)