mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
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>
This commit is contained in:
parent
e882b0953c
commit
907cc9fefe
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user