aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/fujitsu-tablet.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:18:33 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:03 -0500
commitb859f15921321b7bf4cb4cf188e31a6a25d2dff3 (patch)
tree551312f637cc2c27959f89742b1ee28baa4a46c7 /drivers/platform/x86/fujitsu-tablet.c
parent4c62e9764ab403d42f9b8871b1241fe7812f19d4 (diff)
Drivers: platform: x86: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Joey Lee <jlee@novell.com> Cc: Matthew Garrett <mjg@redhat.com> Cc: Peter Feuerer <peter@piie.net> Cc: Corentin Chary <corentin.chary@gmail.com> Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Cc: Robert Gerlach <khnz@gmx.de> Cc: Ike Panhc <ike.pan@canonical.com> Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/x86/fujitsu-tablet.c')
-rw-r--r--drivers/platform/x86/fujitsu-tablet.c17
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
195static int __devinit input_fujitsu_setup(struct device *parent, 195static 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
280static void __devinit fujitsu_dmi_common(const struct dmi_system_id *dmi) 280static 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
287static int __devinit fujitsu_dmi_lifebook(const struct dmi_system_id *dmi) 287static 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
294static int __devinit fujitsu_dmi_stylistic(const struct dmi_system_id *dmi) 294static 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
369static acpi_status __devinit 369static acpi_status fujitsu_walk_resources(struct acpi_resource *res, void *data)
370fujitsu_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
393static int __devinit acpi_fujitsu_add(struct acpi_device *adev) 392static 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
435static int __devexit acpi_fujitsu_remove(struct acpi_device *adev, int type) 434static 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);