summaryrefslogtreecommitdiffstats
path: root/arch/arm/common/bL_switcher_dummy_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/common/bL_switcher_dummy_if.c')
-rw-r--r--arch/arm/common/bL_switcher_dummy_if.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/common/bL_switcher_dummy_if.c b/arch/arm/common/bL_switcher_dummy_if.c
index 3f47f1203c6b..6053f64c3752 100644
--- a/arch/arm/common/bL_switcher_dummy_if.c
+++ b/arch/arm/common/bL_switcher_dummy_if.c
@@ -56,16 +56,4 @@ static struct miscdevice bL_switcher_device = {
"b.L_switcher",
&bL_switcher_fops
};
-
-static int __init bL_switcher_dummy_if_init(void)
-{
- return misc_register(&bL_switcher_device);
-}
-
-static void __exit bL_switcher_dummy_if_exit(void)
-{
- misc_deregister(&bL_switcher_device);
-}
-
-module_init(bL_switcher_dummy_if_init);
-module_exit(bL_switcher_dummy_if_exit);
+module_misc_device(bL_switcher_device);
OpenPOWER on IntegriCloud