diff options
Diffstat (limited to 'drivers/sbus/char/uctrl.c')
-rw-r--r-- | drivers/sbus/char/uctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/uctrl.c b/drivers/sbus/char/uctrl.c index b8b40e9eca79..57f0612bb013 100644 --- a/drivers/sbus/char/uctrl.c +++ b/drivers/sbus/char/uctrl.c | |||
@@ -437,12 +437,12 @@ static struct of_platform_driver uctrl_driver = { | |||
437 | 437 | ||
438 | static int __init uctrl_init(void) | 438 | static int __init uctrl_init(void) |
439 | { | 439 | { |
440 | return of_register_driver(&uctrl_driver, &of_bus_type); | 440 | return of_register_platform_driver(&uctrl_driver); |
441 | } | 441 | } |
442 | 442 | ||
443 | static void __exit uctrl_exit(void) | 443 | static void __exit uctrl_exit(void) |
444 | { | 444 | { |
445 | of_unregister_driver(&uctrl_driver); | 445 | of_unregister_platform_driver(&uctrl_driver); |
446 | } | 446 | } |
447 | 447 | ||
448 | module_init(uctrl_init); | 448 | module_init(uctrl_init); |