summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanjun Guo <guohanjun@huawei.com>2020-11-13 10:25:11 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-11-17 18:12:34 +0100
commite882b0953ccc7ad9938251f9c7e00411a4ac48d7 (patch)
treede467b1d43f03d1db16de070fdb832019f3cf451
parentdff714087c40644d225094a1f75d2272cc8a4885 (diff)
downloadlinux-e882b0953ccc7ad9938251f9c7e00411a4ac48d7.tar.bz2
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>
-rw-r--r--drivers/acpi/sbs.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
index cbd1af7ce7f4..3b0b6dd34914 100644
--- a/drivers/acpi/sbs.c
+++ b/drivers/acpi/sbs.c
@@ -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);