aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-07-16 21:55:25 -0400
committerMatthew Garrett <matthew.garrett@nebula.com>2013-09-05 08:51:45 -0400
commit2ff1af707b09cbf29247c9224fb3494305e82aef (patch)
tree4de4e96f214451f24ec4eadc02d1a37b2788d0d1 /drivers/platform/x86
parent4d2635367bbcfaa168194ced0899717eac2ef4bd (diff)
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/x86')
-rw-r--r--drivers/platform/x86/intel-rst.c13
1 files changed, 1 insertions, 12 deletions
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 = {
193 }, 193 },
194}; 194};
195 195
196static int irst_init(void) 196module_acpi_driver(irst_driver);
197{
198 return acpi_bus_register_driver(&irst_driver);
199}
200
201static void irst_exit(void)
202{
203 acpi_bus_unregister_driver(&irst_driver);
204}
205
206module_init(irst_init);
207module_exit(irst_exit);
208 197
209MODULE_DEVICE_TABLE(acpi, irst_ids); 198MODULE_DEVICE_TABLE(acpi, irst_ids);