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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
This commit is contained in:
parent
aa3b88a3a4
commit
4d2635367b
1 changed files with 1 additions and 12 deletions
|
@ -74,17 +74,6 @@ static struct acpi_driver smartconnect_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int smartconnect_init(void)
|
module_acpi_driver(smartconnect_driver);
|
||||||
{
|
|
||||||
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_DEVICE_TABLE(acpi, smartconnect_ids);
|
MODULE_DEVICE_TABLE(acpi, smartconnect_ids);
|
||||||
|
|
Loading…
Add table
Reference in a new issue