aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ultra45_env.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ultra45_env.c')
-rw-r--r--drivers/hwmon/ultra45_env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/ultra45_env.c b/drivers/hwmon/ultra45_env.c
index 5da5942cf970..89643261ccdb 100644
--- a/drivers/hwmon/ultra45_env.c
+++ b/drivers/hwmon/ultra45_env.c
@@ -311,12 +311,12 @@ static struct of_platform_driver env_driver = {
311 311
312static int __init env_init(void) 312static int __init env_init(void)
313{ 313{
314 return of_register_driver(&env_driver, &of_bus_type); 314 return of_register_platform_driver(&env_driver);
315} 315}
316 316
317static void __exit env_exit(void) 317static void __exit env_exit(void)
318{ 318{
319 of_unregister_driver(&env_driver); 319 of_unregister_platform_driver(&env_driver);
320} 320}
321 321
322module_init(env_init); 322module_init(env_init);