mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
ACPI: SBS: Simplify the code using module_acpi_driver()
Using the module_acpi_driver() to simplify the code. Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
dff714087c
commit
e882b0953c
@ -711,17 +711,4 @@ static struct acpi_driver acpi_sbs_driver = {
|
||||
},
|
||||
.drv.pm = &acpi_sbs_pm,
|
||||
};
|
||||
|
||||
static int __init acpi_sbs_init(void)
|
||||
{
|
||||
return acpi_bus_register_driver(&acpi_sbs_driver);
|
||||
}
|
||||
|
||||
static void __exit acpi_sbs_exit(void)
|
||||
{
|
||||
acpi_bus_unregister_driver(&acpi_sbs_driver);
|
||||
return;
|
||||
}
|
||||
|
||||
module_init(acpi_sbs_init);
|
||||
module_exit(acpi_sbs_exit);
|
||||
module_acpi_driver(acpi_sbs_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user