diff options
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/smu.c | 7 | ||||
-rw-r--r-- | drivers/macintosh/therm_pm72.c | 8 | ||||
-rw-r--r-- | drivers/macintosh/therm_windtunnel.c | 9 |
3 files changed, 11 insertions, 13 deletions
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c index 290cb325a94c..116a49ce74b2 100644 --- a/drivers/macintosh/smu.c +++ b/drivers/macintosh/smu.c | |||
@@ -645,8 +645,7 @@ static void smu_expose_childs(struct work_struct *unused) | |||
645 | 645 | ||
646 | static DECLARE_WORK(smu_expose_childs_work, smu_expose_childs); | 646 | static DECLARE_WORK(smu_expose_childs_work, smu_expose_childs); |
647 | 647 | ||
648 | static int smu_platform_probe(struct platform_device* dev, | 648 | static int smu_platform_probe(struct platform_device* dev) |
649 | const struct of_device_id *match) | ||
650 | { | 649 | { |
651 | if (!smu) | 650 | if (!smu) |
652 | return -ENODEV; | 651 | return -ENODEV; |
@@ -669,7 +668,7 @@ static const struct of_device_id smu_platform_match[] = | |||
669 | {}, | 668 | {}, |
670 | }; | 669 | }; |
671 | 670 | ||
672 | static struct of_platform_driver smu_of_platform_driver = | 671 | static struct platform_driver smu_of_platform_driver = |
673 | { | 672 | { |
674 | .driver = { | 673 | .driver = { |
675 | .name = "smu", | 674 | .name = "smu", |
@@ -689,7 +688,7 @@ static int __init smu_init_sysfs(void) | |||
689 | * I'm a bit too far from figuring out how that works with those | 688 | * I'm a bit too far from figuring out how that works with those |
690 | * new chipsets, but that will come back and bite us | 689 | * new chipsets, but that will come back and bite us |
691 | */ | 690 | */ |
692 | of_register_platform_driver(&smu_of_platform_driver); | 691 | platform_driver_register(&smu_of_platform_driver); |
693 | return 0; | 692 | return 0; |
694 | } | 693 | } |
695 | 694 | ||
diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh/therm_pm72.c index f3a29f264db9..bca2af2e3760 100644 --- a/drivers/macintosh/therm_pm72.c +++ b/drivers/macintosh/therm_pm72.c | |||
@@ -2210,7 +2210,7 @@ static void fcu_lookup_fans(struct device_node *fcu_node) | |||
2210 | } | 2210 | } |
2211 | } | 2211 | } |
2212 | 2212 | ||
2213 | static int fcu_of_probe(struct platform_device* dev, const struct of_device_id *match) | 2213 | static int fcu_of_probe(struct platform_device* dev) |
2214 | { | 2214 | { |
2215 | state = state_detached; | 2215 | state = state_detached; |
2216 | of_dev = dev; | 2216 | of_dev = dev; |
@@ -2240,7 +2240,7 @@ static const struct of_device_id fcu_match[] = | |||
2240 | }; | 2240 | }; |
2241 | MODULE_DEVICE_TABLE(of, fcu_match); | 2241 | MODULE_DEVICE_TABLE(of, fcu_match); |
2242 | 2242 | ||
2243 | static struct of_platform_driver fcu_of_platform_driver = | 2243 | static struct platform_driver fcu_of_platform_driver = |
2244 | { | 2244 | { |
2245 | .driver = { | 2245 | .driver = { |
2246 | .name = "temperature", | 2246 | .name = "temperature", |
@@ -2263,12 +2263,12 @@ static int __init therm_pm72_init(void) | |||
2263 | !rackmac) | 2263 | !rackmac) |
2264 | return -ENODEV; | 2264 | return -ENODEV; |
2265 | 2265 | ||
2266 | return of_register_platform_driver(&fcu_of_platform_driver); | 2266 | return platform_driver_register(&fcu_of_platform_driver); |
2267 | } | 2267 | } |
2268 | 2268 | ||
2269 | static void __exit therm_pm72_exit(void) | 2269 | static void __exit therm_pm72_exit(void) |
2270 | { | 2270 | { |
2271 | of_unregister_platform_driver(&fcu_of_platform_driver); | 2271 | platform_driver_unregister(&fcu_of_platform_driver); |
2272 | } | 2272 | } |
2273 | 2273 | ||
2274 | module_init(therm_pm72_init); | 2274 | module_init(therm_pm72_init); |
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index c89f396e4c53..d37819fd5ad3 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c | |||
@@ -443,8 +443,7 @@ static struct i2c_driver g4fan_driver = { | |||
443 | /* initialization / cleanup */ | 443 | /* initialization / cleanup */ |
444 | /************************************************************************/ | 444 | /************************************************************************/ |
445 | 445 | ||
446 | static int | 446 | static int therm_of_probe(struct platform_device *dev) |
447 | therm_of_probe( struct platform_device *dev, const struct of_device_id *match ) | ||
448 | { | 447 | { |
449 | return i2c_add_driver( &g4fan_driver ); | 448 | return i2c_add_driver( &g4fan_driver ); |
450 | } | 449 | } |
@@ -462,7 +461,7 @@ static const struct of_device_id therm_of_match[] = {{ | |||
462 | }, {} | 461 | }, {} |
463 | }; | 462 | }; |
464 | 463 | ||
465 | static struct of_platform_driver therm_of_driver = { | 464 | static struct platform_driver therm_of_driver = { |
466 | .driver = { | 465 | .driver = { |
467 | .name = "temperature", | 466 | .name = "temperature", |
468 | .owner = THIS_MODULE, | 467 | .owner = THIS_MODULE, |
@@ -509,14 +508,14 @@ g4fan_init( void ) | |||
509 | return -ENODEV; | 508 | return -ENODEV; |
510 | } | 509 | } |
511 | 510 | ||
512 | of_register_platform_driver( &therm_of_driver ); | 511 | platform_driver_register( &therm_of_driver ); |
513 | return 0; | 512 | return 0; |
514 | } | 513 | } |
515 | 514 | ||
516 | static void __exit | 515 | static void __exit |
517 | g4fan_exit( void ) | 516 | g4fan_exit( void ) |
518 | { | 517 | { |
519 | of_unregister_platform_driver( &therm_of_driver ); | 518 | platform_driver_unregister( &therm_of_driver ); |
520 | 519 | ||
521 | if( x.of_dev ) | 520 | if( x.of_dev ) |
522 | of_device_unregister( x.of_dev ); | 521 | of_device_unregister( x.of_dev ); |