mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
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>
This commit is contained in:
parent
4d2635367b
commit
2ff1af707b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user