Skip to content

Commit

Permalink
ACPI/button: convert to module_acpi_driver()
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Mika Westerberg authored and Len Brown committed Sep 21, 2012
1 parent 0d2cf8f commit 466e78f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/acpi/button.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,15 +450,4 @@ static int acpi_button_remove(struct acpi_device *device, int type)
return 0;
}

static int __init acpi_button_init(void)
{
return acpi_bus_register_driver(&acpi_button_driver);
}

static void __exit acpi_button_exit(void)
{
acpi_bus_unregister_driver(&acpi_button_driver);
}

module_init(acpi_button_init);
module_exit(acpi_button_exit);
module_acpi_driver(acpi_button_driver);

0 comments on commit 466e78f

Please sign in to comment.