diff options
Diffstat (limited to 'drivers/hwmon/ultra45_env.c')
-rw-r--r-- | drivers/hwmon/ultra45_env.c | 4 |
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 | ||
312 | static int __init env_init(void) | 312 | static 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 | ||
317 | static void __exit env_exit(void) | 317 | static void __exit env_exit(void) |
318 | { | 318 | { |
319 | of_unregister_driver(&env_driver); | 319 | of_unregister_platform_driver(&env_driver); |
320 | } | 320 | } |
321 | 321 | ||
322 | module_init(env_init); | 322 | module_init(env_init); |