diff options
Diffstat (limited to 'drivers/platform/x86/xo1-rfkill.c')
-rw-r--r-- | drivers/platform/x86/xo1-rfkill.c | 13 |
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 | ||
70 | static int __init xo1_rfkill_init(void) | 70 | module_platform_driver(xo1_rfkill_driver); |
71 | { | ||
72 | return platform_driver_register(&xo1_rfkill_driver); | ||
73 | } | ||
74 | |||
75 | static void __exit xo1_rfkill_exit(void) | ||
76 | { | ||
77 | platform_driver_unregister(&xo1_rfkill_driver); | ||
78 | } | ||
79 | 71 | ||
80 | MODULE_AUTHOR("Daniel Drake <dsd@laptop.org>"); | 72 | MODULE_AUTHOR("Daniel Drake <dsd@laptop.org>"); |
81 | MODULE_LICENSE("GPL"); | 73 | MODULE_LICENSE("GPL"); |
82 | MODULE_ALIAS("platform:xo1-rfkill"); | 74 | MODULE_ALIAS("platform:xo1-rfkill"); |
83 | |||
84 | module_init(xo1_rfkill_init); | ||
85 | module_exit(xo1_rfkill_exit); | ||