diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-07-17 01:55:25 (GMT) |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2013-09-05 12:51:45 (GMT) |
commit | 2ff1af707b09cbf29247c9224fb3494305e82aef (patch) | |
tree | 4de4e96f214451f24ec4eadc02d1a37b2788d0d1 /drivers/platform | |
parent | 4d2635367bbcfaa168194ced0899717eac2ef4bd (diff) | |
download | linux-2ff1af707b09cbf29247c9224fb3494305e82aef.tar.xz |
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 <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-rst.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/platform/x86/intel-rst.c b/drivers/platform/x86/intel-rst.c index 9385afd..41b740c 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); |