* [PATCH] ACPI: tiny-power-button: Simplify the code using module_acpi_driver()
@ 2020-11-13 2:26 Hanjun Guo
0 siblings, 0 replies; only message in thread
From: Hanjun Guo @ 2020-11-13 2:26 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: linux-acpi, Hanjun Guo
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 --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);
--
1.7.12.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-13 2:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13 2:26 [PATCH] ACPI: tiny-power-button: Simplify the code using module_acpi_driver() Hanjun Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox