summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-07-17 03:52:28 +0200
committerMatthew Garrett <matthew.garrett@nebula.com>2013-09-05 14:51:39 +0200
commit4d2635367bbcfaa168194ced0899717eac2ef4bd (patch)
tree144f7ad150c19897fe246e96d6d78bdf0e16902a /drivers/platform
parentplatform samsung-q10: use ACPI instead of direct EC calls (diff)
downloadlinux-4d2635367bbcfaa168194ced0899717eac2ef4bd.tar.xz
linux-4d2635367bbcfaa168194ced0899717eac2ef4bd.zip
x86: smartconnect: use module_acpi_driver to simplify the code
module_acpi_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel-smartconnect.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/platform/x86/intel-smartconnect.c b/drivers/platform/x86/intel-smartconnect.c
index f74e93d096bc..52259dcabecb 100644
--- a/drivers/platform/x86/intel-smartconnect.c
+++ b/drivers/platform/x86/intel-smartconnect.c
@@ -74,17 +74,6 @@ static struct acpi_driver smartconnect_driver = {
},
};
-static int smartconnect_init(void)
-{
- return acpi_bus_register_driver(&smartconnect_driver);
-}
-
-static void smartconnect_exit(void)
-{
- acpi_bus_unregister_driver(&smartconnect_driver);
-}
-
-module_init(smartconnect_init);
-module_exit(smartconnect_exit);
+module_acpi_driver(smartconnect_driver);
MODULE_DEVICE_TABLE(acpi, smartconnect_ids);