aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/therm_pm72.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh/therm_pm72.c')
-rw-r--r--drivers/macintosh/therm_pm72.c8
1 files changed, 4 insertions, 4 deletions
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
2213static int fcu_of_probe(struct platform_device* dev, const struct of_device_id *match) 2213static 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};
2241MODULE_DEVICE_TABLE(of, fcu_match); 2241MODULE_DEVICE_TABLE(of, fcu_match);
2242 2242
2243static struct of_platform_driver fcu_of_platform_driver = 2243static 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
2269static void __exit therm_pm72_exit(void) 2269static 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
2274module_init(therm_pm72_init); 2274module_init(therm_pm72_init);