Skip to contentSkip to conversation

ACPI: tiny-power-button: Simplify the code using module_acpi_driver()

PATCH New Hanjun Guo 1 participant 1 message Nov 13, 2020 ACPI

lore
Share & tools
lore

Hanjun Guo

author
#0 lore raw

PATCH 1/1 ACPI: tiny-power-button: Simplify the code using module_acpi_driver()

Using module_acpi_driver() to simplify the code.

---
 drivers/acpi/tiny-power-button.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/acpi/tiny-power-button.c +1 -3
index 420e61b..a19f0e4 100644
@@ -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);
Signature · 1 line
1.7.12.4