diff options
Diffstat (limited to 'drivers/sbus/char/flash.c')
-rw-r--r-- | drivers/sbus/char/flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/flash.c b/drivers/sbus/char/flash.c index ed9494e18859..8bb31c584b64 100644 --- a/drivers/sbus/char/flash.c +++ b/drivers/sbus/char/flash.c | |||
@@ -219,12 +219,12 @@ static struct of_platform_driver flash_driver = { | |||
219 | 219 | ||
220 | static int __init flash_init(void) | 220 | static int __init flash_init(void) |
221 | { | 221 | { |
222 | return of_register_driver(&flash_driver, &of_bus_type); | 222 | return of_register_platform_driver(&flash_driver); |
223 | } | 223 | } |
224 | 224 | ||
225 | static void __exit flash_cleanup(void) | 225 | static void __exit flash_cleanup(void) |
226 | { | 226 | { |
227 | of_unregister_driver(&flash_driver); | 227 | of_unregister_platform_driver(&flash_driver); |
228 | } | 228 | } |
229 | 229 | ||
230 | module_init(flash_init); | 230 | module_init(flash_init); |