aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/xo1-rfkill.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86/xo1-rfkill.c')
-rw-r--r--drivers/platform/x86/xo1-rfkill.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/platform/x86/xo1-rfkill.c b/drivers/platform/x86/xo1-rfkill.c
index e549eeeda121..41781ed8301c 100644
--- a/drivers/platform/x86/xo1-rfkill.c
+++ b/drivers/platform/x86/xo1-rfkill.c
@@ -67,19 +67,8 @@ static struct platform_driver xo1_rfkill_driver = {
67 .remove = __devexit_p(xo1_rfkill_remove), 67 .remove = __devexit_p(xo1_rfkill_remove),
68}; 68};
69 69
70static int __init xo1_rfkill_init(void) 70module_platform_driver(xo1_rfkill_driver);
71{
72 return platform_driver_register(&xo1_rfkill_driver);
73}
74
75static void __exit xo1_rfkill_exit(void)
76{
77 platform_driver_unregister(&xo1_rfkill_driver);
78}
79 71
80MODULE_AUTHOR("Daniel Drake <dsd@laptop.org>"); 72MODULE_AUTHOR("Daniel Drake <dsd@laptop.org>");
81MODULE_LICENSE("GPL"); 73MODULE_LICENSE("GPL");
82MODULE_ALIAS("platform:xo1-rfkill"); 74MODULE_ALIAS("platform:xo1-rfkill");
83
84module_init(xo1_rfkill_init);
85module_exit(xo1_rfkill_exit);