diff mbox series

[21/25] ACPI: tiny-power-button: Simplify the code using module_acpi_driver()

Message ID 1600328345-27627-22-git-send-email-guohanjun@huawei.com (mailing list archive)
State Changes Requested, archived
Headers show
Series ACPI: First step to decouple ACPICA debug functionality from ACPI driver | expand

Commit Message

Hanjun Guo Sept. 17, 2020, 7:39 a.m. UTC
Using module_acpi_driver() to simplify the code.

Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
---
 drivers/acpi/tiny-power-button.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/acpi/tiny-power-button.c b/drivers/acpi/tiny-power-button.c
index 420e61b..a19f0e4 100644
--- a/drivers/acpi/tiny-power-button.c
+++ b/drivers/acpi/tiny-power-button.c
@@ -40,6 +40,4 @@  static void acpi_tiny_power_button_notify(struct acpi_device *device, u32 event)
 	},
 };
 
-module_driver(acpi_tiny_power_button_driver,
-		acpi_bus_register_driver,
-		acpi_bus_unregister_driver);
+module_acpi_driver(acpi_tiny_power_button_driver);