diff options
Diffstat (limited to 'drivers/platform/x86/intel_mid_powerbtn.c')
-rw-r--r-- | drivers/platform/x86/intel_mid_powerbtn.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/platform/x86/intel_mid_powerbtn.c b/drivers/platform/x86/intel_mid_powerbtn.c index 0903a883e9f4..0a3594c7e912 100644 --- a/drivers/platform/x86/intel_mid_powerbtn.c +++ b/drivers/platform/x86/intel_mid_powerbtn.c | |||
@@ -142,17 +142,7 @@ static struct platform_driver mfld_pb_driver = { | |||
142 | .remove = __devexit_p(mfld_pb_remove), | 142 | .remove = __devexit_p(mfld_pb_remove), |
143 | }; | 143 | }; |
144 | 144 | ||
145 | static int __init mfld_pb_init(void) | 145 | module_platform_driver(mfld_pb_driver); |
146 | { | ||
147 | return platform_driver_register(&mfld_pb_driver); | ||
148 | } | ||
149 | module_init(mfld_pb_init); | ||
150 | |||
151 | static void __exit mfld_pb_exit(void) | ||
152 | { | ||
153 | platform_driver_unregister(&mfld_pb_driver); | ||
154 | } | ||
155 | module_exit(mfld_pb_exit); | ||
156 | 146 | ||
157 | MODULE_AUTHOR("Hong Liu <hong.liu@intel.com>"); | 147 | MODULE_AUTHOR("Hong Liu <hong.liu@intel.com>"); |
158 | MODULE_DESCRIPTION("Intel Medfield Power Button Driver"); | 148 | MODULE_DESCRIPTION("Intel Medfield Power Button Driver"); |