From: Wei Yongjun Date: Wed, 17 Jul 2013 01:52:28 +0000 (+0800) Subject: x86: smartconnect: use module_acpi_driver to simplify the code X-Git-Tag: accepted/tizen/common/20141203.182822~1443^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d2635367bbcfaa168194ced0899717eac2ef4bd;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/intel-smartconnect.c b/drivers/platform/x86/intel-smartconnect.c index f74e93d..52259dc 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);