From: Wei Yongjun Date: Wed, 17 Jul 2013 01:55:25 +0000 (+0800) Subject: x86: irst: use module_acpi_driver to simplify the code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ff1af707b09cbf29247c9224fb3494305e82aef;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git x86: irst: 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-rst.c b/drivers/platform/x86/intel-rst.c index 9385afd9b558..41b740cb28bc 100644 --- a/drivers/platform/x86/intel-rst.c +++ b/drivers/platform/x86/intel-rst.c @@ -193,17 +193,6 @@ static struct acpi_driver irst_driver = { }, }; -static int irst_init(void) -{ - return acpi_bus_register_driver(&irst_driver); -} - -static void irst_exit(void) -{ - acpi_bus_unregister_driver(&irst_driver); -} - -module_init(irst_init); -module_exit(irst_exit); +module_acpi_driver(irst_driver); MODULE_DEVICE_TABLE(acpi, irst_ids);