diff options
Diffstat (limited to 'drivers/platform/x86/fujitsu-tablet.c')
-rw-r--r-- | drivers/platform/x86/fujitsu-tablet.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/drivers/platform/x86/fujitsu-tablet.c b/drivers/platform/x86/fujitsu-tablet.c index f77484528b1b..174ca01c4aa7 100644 --- a/drivers/platform/x86/fujitsu-tablet.c +++ b/drivers/platform/x86/fujitsu-tablet.c | |||
@@ -192,8 +192,8 @@ static void fujitsu_reset(void) | |||
192 | fujitsu_send_state(); | 192 | fujitsu_send_state(); |
193 | } | 193 | } |
194 | 194 | ||
195 | static int __devinit input_fujitsu_setup(struct device *parent, | 195 | static int input_fujitsu_setup(struct device *parent, const char *name, |
196 | const char *name, const char *phys) | 196 | const char *phys) |
197 | { | 197 | { |
198 | struct input_dev *idev; | 198 | struct input_dev *idev; |
199 | int error; | 199 | int error; |
@@ -277,21 +277,21 @@ static irqreturn_t fujitsu_interrupt(int irq, void *dev_id) | |||
277 | return IRQ_HANDLED; | 277 | return IRQ_HANDLED; |
278 | } | 278 | } |
279 | 279 | ||
280 | static void __devinit fujitsu_dmi_common(const struct dmi_system_id *dmi) | 280 | static void fujitsu_dmi_common(const struct dmi_system_id *dmi) |
281 | { | 281 | { |
282 | pr_info("%s\n", dmi->ident); | 282 | pr_info("%s\n", dmi->ident); |
283 | memcpy(fujitsu.config.keymap, dmi->driver_data, | 283 | memcpy(fujitsu.config.keymap, dmi->driver_data, |
284 | sizeof(fujitsu.config.keymap)); | 284 | sizeof(fujitsu.config.keymap)); |
285 | } | 285 | } |
286 | 286 | ||
287 | static int __devinit fujitsu_dmi_lifebook(const struct dmi_system_id *dmi) | 287 | static int fujitsu_dmi_lifebook(const struct dmi_system_id *dmi) |
288 | { | 288 | { |
289 | fujitsu_dmi_common(dmi); | 289 | fujitsu_dmi_common(dmi); |
290 | fujitsu.config.quirks |= INVERT_TABLET_MODE_BIT; | 290 | fujitsu.config.quirks |= INVERT_TABLET_MODE_BIT; |
291 | return 1; | 291 | return 1; |
292 | } | 292 | } |
293 | 293 | ||
294 | static int __devinit fujitsu_dmi_stylistic(const struct dmi_system_id *dmi) | 294 | static int fujitsu_dmi_stylistic(const struct dmi_system_id *dmi) |
295 | { | 295 | { |
296 | fujitsu_dmi_common(dmi); | 296 | fujitsu_dmi_common(dmi); |
297 | fujitsu.config.quirks |= FORCE_TABLET_MODE_IF_UNDOCK; | 297 | fujitsu.config.quirks |= FORCE_TABLET_MODE_IF_UNDOCK; |
@@ -366,8 +366,7 @@ static const struct dmi_system_id dmi_ids[] __initconst = { | |||
366 | { NULL } | 366 | { NULL } |
367 | }; | 367 | }; |
368 | 368 | ||
369 | static acpi_status __devinit | 369 | static acpi_status fujitsu_walk_resources(struct acpi_resource *res, void *data) |
370 | fujitsu_walk_resources(struct acpi_resource *res, void *data) | ||
371 | { | 370 | { |
372 | switch (res->type) { | 371 | switch (res->type) { |
373 | case ACPI_RESOURCE_TYPE_IRQ: | 372 | case ACPI_RESOURCE_TYPE_IRQ: |
@@ -390,7 +389,7 @@ fujitsu_walk_resources(struct acpi_resource *res, void *data) | |||
390 | } | 389 | } |
391 | } | 390 | } |
392 | 391 | ||
393 | static int __devinit acpi_fujitsu_add(struct acpi_device *adev) | 392 | static int acpi_fujitsu_add(struct acpi_device *adev) |
394 | { | 393 | { |
395 | acpi_status status; | 394 | acpi_status status; |
396 | int error; | 395 | int error; |
@@ -432,7 +431,7 @@ static int __devinit acpi_fujitsu_add(struct acpi_device *adev) | |||
432 | return 0; | 431 | return 0; |
433 | } | 432 | } |
434 | 433 | ||
435 | static int __devexit acpi_fujitsu_remove(struct acpi_device *adev, int type) | 434 | static int acpi_fujitsu_remove(struct acpi_device *adev, int type) |
436 | { | 435 | { |
437 | free_irq(fujitsu.irq, fujitsu_interrupt); | 436 | free_irq(fujitsu.irq, fujitsu_interrupt); |
438 | release_region(fujitsu.io_base, fujitsu.io_length); | 437 | release_region(fujitsu.io_base, fujitsu.io_length); |