Commit 01d17753 authored by Mika Westerberg's avatar Mika Westerberg Committed by Len Brown

toshiba_bluetooth: convert to module_acpi_driver()

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 15165594
...@@ -122,30 +122,10 @@ static int toshiba_bt_rfkill_add(struct acpi_device *device) ...@@ -122,30 +122,10 @@ static int toshiba_bt_rfkill_add(struct acpi_device *device)
return result; return result;
} }
static int __init toshiba_bt_rfkill_init(void)
{
int result;
result = acpi_bus_register_driver(&toshiba_bt_rfkill_driver);
if (result < 0) {
ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
"Error registering driver\n"));
return result;
}
return 0;
}
static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type) static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type)
{ {
/* clean up */ /* clean up */
return 0; return 0;
} }
static void __exit toshiba_bt_rfkill_exit(void) module_acpi_driver(toshiba_bt_rfkill_driver);
{
acpi_bus_unregister_driver(&toshiba_bt_rfkill_driver);
}
module_init(toshiba_bt_rfkill_init);
module_exit(toshiba_bt_rfkill_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment