aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/toshiba_bluetooth.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/platform/x86/toshiba_bluetooth.c b/drivers/platform/x86/toshiba_bluetooth.c
index 5e5d6317d690..e95be0b74859 100644
--- a/drivers/platform/x86/toshiba_bluetooth.c
+++ b/drivers/platform/x86/toshiba_bluetooth.c
@@ -122,30 +122,10 @@ static int toshiba_bt_rfkill_add(struct acpi_device *device)
122 return result; 122 return result;
123} 123}
124 124
125static int __init toshiba_bt_rfkill_init(void)
126{
127 int result;
128
129 result = acpi_bus_register_driver(&toshiba_bt_rfkill_driver);
130 if (result < 0) {
131 ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
132 "Error registering driver\n"));
133 return result;
134 }
135
136 return 0;
137}
138
139static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type) 125static int toshiba_bt_rfkill_remove(struct acpi_device *device, int type)
140{ 126{
141 /* clean up */ 127 /* clean up */
142 return 0; 128 return 0;
143} 129}
144 130
145static void __exit toshiba_bt_rfkill_exit(void) 131module_acpi_driver(toshiba_bt_rfkill_driver);
146{
147 acpi_bus_unregister_driver(&toshiba_bt_rfkill_driver);
148}
149
150module_init(toshiba_bt_rfkill_init);
151module_exit(toshiba_bt_rfkill_exit);