diff options
Diffstat (limited to 'drivers/sbus/char/bbc_i2c.c')
-rw-r--r-- | drivers/sbus/char/bbc_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c index 40d7a1fc69af..3e89c313e98d 100644 --- a/drivers/sbus/char/bbc_i2c.c +++ b/drivers/sbus/char/bbc_i2c.c | |||
@@ -425,12 +425,12 @@ static struct of_platform_driver bbc_i2c_driver = { | |||
425 | 425 | ||
426 | static int __init bbc_i2c_init(void) | 426 | static int __init bbc_i2c_init(void) |
427 | { | 427 | { |
428 | return of_register_driver(&bbc_i2c_driver, &of_bus_type); | 428 | return of_register_platform_driver(&bbc_i2c_driver); |
429 | } | 429 | } |
430 | 430 | ||
431 | static void __exit bbc_i2c_exit(void) | 431 | static void __exit bbc_i2c_exit(void) |
432 | { | 432 | { |
433 | of_unregister_driver(&bbc_i2c_driver); | 433 | of_unregister_platform_driver(&bbc_i2c_driver); |
434 | } | 434 | } |
435 | 435 | ||
436 | module_init(bbc_i2c_init); | 436 | module_init(bbc_i2c_init); |