aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/sbus')
-rw-r--r--drivers/sbus/char/bbc_i2c.c4
-rw-r--r--drivers/sbus/char/display7seg.c4
-rw-r--r--drivers/sbus/char/envctrl.c4
-rw-r--r--drivers/sbus/char/flash.c4
-rw-r--r--drivers/sbus/char/uctrl.c4
5 files changed, 10 insertions, 10 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
426static int __init bbc_i2c_init(void) 426static 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
431static void __exit bbc_i2c_exit(void) 431static 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
436module_init(bbc_i2c_init); 436module_init(bbc_i2c_init);
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c
index 7baf1b644039..8fd362e7fa65 100644
--- a/drivers/sbus/char/display7seg.c
+++ b/drivers/sbus/char/display7seg.c
@@ -277,12 +277,12 @@ static struct of_platform_driver d7s_driver = {
277 277
278static int __init d7s_init(void) 278static int __init d7s_init(void)
279{ 279{
280 return of_register_driver(&d7s_driver, &of_bus_type); 280 return of_register_platform_driver(&d7s_driver);
281} 281}
282 282
283static void __exit d7s_exit(void) 283static void __exit d7s_exit(void)
284{ 284{
285 of_unregister_driver(&d7s_driver); 285 of_unregister_platform_driver(&d7s_driver);
286} 286}
287 287
288module_init(d7s_init); 288module_init(d7s_init);
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c
index c8166ecf5276..2c76f700265b 100644
--- a/drivers/sbus/char/envctrl.c
+++ b/drivers/sbus/char/envctrl.c
@@ -1142,12 +1142,12 @@ static struct of_platform_driver envctrl_driver = {
1142 1142
1143static int __init envctrl_init(void) 1143static int __init envctrl_init(void)
1144{ 1144{
1145 return of_register_driver(&envctrl_driver, &of_bus_type); 1145 return of_register_platform_driver(&envctrl_driver);
1146} 1146}
1147 1147
1148static void __exit envctrl_exit(void) 1148static void __exit envctrl_exit(void)
1149{ 1149{
1150 of_unregister_driver(&envctrl_driver); 1150 of_unregister_platform_driver(&envctrl_driver);
1151} 1151}
1152 1152
1153module_init(envctrl_init); 1153module_init(envctrl_init);
diff --git a/drivers/sbus/char/flash.c b/drivers/sbus/char/flash.c
index 368d66294d83..d79f386c3486 100644
--- a/drivers/sbus/char/flash.c
+++ b/drivers/sbus/char/flash.c
@@ -218,12 +218,12 @@ static struct of_platform_driver flash_driver = {
218 218
219static int __init flash_init(void) 219static int __init flash_init(void)
220{ 220{
221 return of_register_driver(&flash_driver, &of_bus_type); 221 return of_register_platform_driver(&flash_driver);
222} 222}
223 223
224static void __exit flash_cleanup(void) 224static void __exit flash_cleanup(void)
225{ 225{
226 of_unregister_driver(&flash_driver); 226 of_unregister_platform_driver(&flash_driver);
227} 227}
228 228
229module_init(flash_init); 229module_init(flash_init);
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
438static int __init uctrl_init(void) 438static 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
443static void __exit uctrl_exit(void) 443static void __exit uctrl_exit(void)
444{ 444{
445 of_unregister_driver(&uctrl_driver); 445 of_unregister_platform_driver(&uctrl_driver);
446} 446}
447 447
448module_init(uctrl_init); 448module_init(uctrl_init);