diff options
author | Hanjun Guo <guohanjun@huawei.com> | 2020-11-13 03:26:44 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-11-17 18:12:34 +0100 |
commit | 907cc9fefe8349d6cc70d6800cc8edf10acf7634 (patch) | |
tree | 4dd6a5631d397c821a0fe1b1a156a0746a7a79a5 | |
parent | ACPI: SBS: Simplify the code using module_acpi_driver() (diff) | |
download | linux-907cc9fefe8349d6cc70d6800cc8edf10acf7634.tar.xz linux-907cc9fefe8349d6cc70d6800cc8edf10acf7634.zip |
ACPI: tiny-power-button: Simplify the code using module_acpi_driver()
Using 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/tiny-power-button.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/tiny-power-button.c b/drivers/acpi/tiny-power-button.c index 420e61b8eaae..a19f0e4e69f7 100644 --- a/drivers/acpi/tiny-power-button.c +++ b/drivers/acpi/tiny-power-button.c @@ -40,6 +40,4 @@ static struct acpi_driver acpi_tiny_power_button_driver = { }, }; -module_driver(acpi_tiny_power_button_driver, - acpi_bus_register_driver, - acpi_bus_unregister_driver); +module_acpi_driver(acpi_tiny_power_button_driver); |