diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:18:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:03 -0500 |
commit | b859f15921321b7bf4cb4cf188e31a6a25d2dff3 (patch) | |
tree | 551312f637cc2c27959f89742b1ee28baa4a46c7 /drivers/platform | |
parent | 4c62e9764ab403d42f9b8871b1241fe7812f19d4 (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')
-rw-r--r-- | drivers/platform/x86/acer-wmi.c | 8 | ||||
-rw-r--r-- | drivers/platform/x86/acerhdf.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/amilo-rfkill.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/apple-gmux.c | 7 | ||||
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 6 | ||||
-rw-r--r-- | drivers/platform/x86/compal-laptop.c | 10 | ||||
-rw-r--r-- | drivers/platform/x86/dell-laptop.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/eeepc-laptop.c | 6 | ||||
-rw-r--r-- | drivers/platform/x86/fujitsu-tablet.c | 17 | ||||
-rw-r--r-- | drivers/platform/x86/hp-wmi.c | 8 | ||||
-rw-r--r-- | drivers/platform/x86/ideapad-laptop.c | 13 | ||||
-rw-r--r-- | drivers/platform/x86/intel_mid_powerbtn.c | 6 | ||||
-rw-r--r-- | drivers/platform/x86/intel_mid_thermal.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/intel_oaktrail.c | 6 | ||||
-rw-r--r-- | drivers/platform/x86/intel_pmic_gpio.c | 2 | ||||
-rw-r--r-- | drivers/platform/x86/samsung-q10.c | 6 | ||||
-rw-r--r-- | drivers/platform/x86/tc1100-wmi.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 4 | ||||
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 13 | ||||
-rw-r--r-- | drivers/platform/x86/xo1-rfkill.c | 6 |
20 files changed, 65 insertions, 69 deletions
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 934d861a3235..06f4eb7ab87e 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
@@ -335,7 +335,7 @@ static struct quirk_entry quirk_lenovo_ideapad_s205 = { | |||
335 | }; | 335 | }; |
336 | 336 | ||
337 | /* The Aspire One has a dummy ACPI-WMI interface - disable it */ | 337 | /* The Aspire One has a dummy ACPI-WMI interface - disable it */ |
338 | static struct dmi_system_id __devinitdata acer_blacklist[] = { | 338 | static struct dmi_system_id acer_blacklist[] = { |
339 | { | 339 | { |
340 | .ident = "Acer Aspire One (SSD)", | 340 | .ident = "Acer Aspire One (SSD)", |
341 | .matches = { | 341 | .matches = { |
@@ -1330,7 +1330,7 @@ static struct led_classdev mail_led = { | |||
1330 | .brightness_set = mail_led_set, | 1330 | .brightness_set = mail_led_set, |
1331 | }; | 1331 | }; |
1332 | 1332 | ||
1333 | static int __devinit acer_led_init(struct device *dev) | 1333 | static int acer_led_init(struct device *dev) |
1334 | { | 1334 | { |
1335 | return led_classdev_register(dev, &mail_led); | 1335 | return led_classdev_register(dev, &mail_led); |
1336 | } | 1336 | } |
@@ -1372,7 +1372,7 @@ static const struct backlight_ops acer_bl_ops = { | |||
1372 | .update_status = update_bl_status, | 1372 | .update_status = update_bl_status, |
1373 | }; | 1373 | }; |
1374 | 1374 | ||
1375 | static int __devinit acer_backlight_init(struct device *dev) | 1375 | static int acer_backlight_init(struct device *dev) |
1376 | { | 1376 | { |
1377 | struct backlight_properties props; | 1377 | struct backlight_properties props; |
1378 | struct backlight_device *bd; | 1378 | struct backlight_device *bd; |
@@ -1961,7 +1961,7 @@ static u32 get_wmid_devices(void) | |||
1961 | /* | 1961 | /* |
1962 | * Platform device | 1962 | * Platform device |
1963 | */ | 1963 | */ |
1964 | static int __devinit acer_platform_probe(struct platform_device *device) | 1964 | static int acer_platform_probe(struct platform_device *device) |
1965 | { | 1965 | { |
1966 | int err; | 1966 | int err; |
1967 | 1967 | ||
diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c index c2e3e63d2c15..f94467c05225 100644 --- a/drivers/platform/x86/acerhdf.c +++ b/drivers/platform/x86/acerhdf.c | |||
@@ -515,7 +515,7 @@ static int acerhdf_suspend(struct device *dev) | |||
515 | return 0; | 515 | return 0; |
516 | } | 516 | } |
517 | 517 | ||
518 | static int __devinit acerhdf_probe(struct platform_device *device) | 518 | static int acerhdf_probe(struct platform_device *device) |
519 | { | 519 | { |
520 | return 0; | 520 | return 0; |
521 | } | 521 | } |
diff --git a/drivers/platform/x86/amilo-rfkill.c b/drivers/platform/x86/amilo-rfkill.c index 1deca7f6c4ea..6296f078b7bc 100644 --- a/drivers/platform/x86/amilo-rfkill.c +++ b/drivers/platform/x86/amilo-rfkill.c | |||
@@ -74,7 +74,7 @@ static const struct rfkill_ops amilo_m7440_rfkill_ops = { | |||
74 | .set_block = amilo_m7440_rfkill_set_block | 74 | .set_block = amilo_m7440_rfkill_set_block |
75 | }; | 75 | }; |
76 | 76 | ||
77 | static const struct dmi_system_id __devinitconst amilo_rfkill_id_table[] = { | 77 | static const struct dmi_system_id amilo_rfkill_id_table[] = { |
78 | { | 78 | { |
79 | .matches = { | 79 | .matches = { |
80 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), | 80 | DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"), |
@@ -95,7 +95,7 @@ static const struct dmi_system_id __devinitconst amilo_rfkill_id_table[] = { | |||
95 | static struct platform_device *amilo_rfkill_pdev; | 95 | static struct platform_device *amilo_rfkill_pdev; |
96 | static struct rfkill *amilo_rfkill_dev; | 96 | static struct rfkill *amilo_rfkill_dev; |
97 | 97 | ||
98 | static int __devinit amilo_rfkill_probe(struct platform_device *device) | 98 | static int amilo_rfkill_probe(struct platform_device *device) |
99 | { | 99 | { |
100 | int rc; | 100 | int rc; |
101 | const struct dmi_system_id *system_id = | 101 | const struct dmi_system_id *system_id = |
diff --git a/drivers/platform/x86/apple-gmux.c b/drivers/platform/x86/apple-gmux.c index db8f63841b42..f74bfcbb7bad 100644 --- a/drivers/platform/x86/apple-gmux.c +++ b/drivers/platform/x86/apple-gmux.c | |||
@@ -411,8 +411,7 @@ static int gmux_resume(struct pnp_dev *pnp) | |||
411 | return 0; | 411 | return 0; |
412 | } | 412 | } |
413 | 413 | ||
414 | static int __devinit gmux_probe(struct pnp_dev *pnp, | 414 | static int gmux_probe(struct pnp_dev *pnp, const struct pnp_device_id *id) |
415 | const struct pnp_device_id *id) | ||
416 | { | 415 | { |
417 | struct apple_gmux_data *gmux_data; | 416 | struct apple_gmux_data *gmux_data; |
418 | struct resource *res; | 417 | struct resource *res; |
@@ -577,7 +576,7 @@ err_free: | |||
577 | return ret; | 576 | return ret; |
578 | } | 577 | } |
579 | 578 | ||
580 | static void __devexit gmux_remove(struct pnp_dev *pnp) | 579 | static void gmux_remove(struct pnp_dev *pnp) |
581 | { | 580 | { |
582 | struct apple_gmux_data *gmux_data = pnp_get_drvdata(pnp); | 581 | struct apple_gmux_data *gmux_data = pnp_get_drvdata(pnp); |
583 | 582 | ||
@@ -609,7 +608,7 @@ static const struct pnp_device_id gmux_device_ids[] = { | |||
609 | static struct pnp_driver gmux_pnp_driver = { | 608 | static struct pnp_driver gmux_pnp_driver = { |
610 | .name = "apple-gmux", | 609 | .name = "apple-gmux", |
611 | .probe = gmux_probe, | 610 | .probe = gmux_probe, |
612 | .remove = __devexit_p(gmux_remove), | 611 | .remove = gmux_remove, |
613 | .id_table = gmux_device_ids, | 612 | .id_table = gmux_device_ids, |
614 | .suspend = gmux_suspend, | 613 | .suspend = gmux_suspend, |
615 | .resume = gmux_resume | 614 | .resume = gmux_resume |
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 4b568df56643..ec1d3bc2dbe2 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -1763,7 +1763,7 @@ static int asus_laptop_get_info(struct asus_laptop *asus) | |||
1763 | return AE_OK; | 1763 | return AE_OK; |
1764 | } | 1764 | } |
1765 | 1765 | ||
1766 | static int __devinit asus_acpi_init(struct asus_laptop *asus) | 1766 | static int asus_acpi_init(struct asus_laptop *asus) |
1767 | { | 1767 | { |
1768 | int result = 0; | 1768 | int result = 0; |
1769 | 1769 | ||
@@ -1823,7 +1823,7 @@ static int __devinit asus_acpi_init(struct asus_laptop *asus) | |||
1823 | return result; | 1823 | return result; |
1824 | } | 1824 | } |
1825 | 1825 | ||
1826 | static void __devinit asus_dmi_check(void) | 1826 | static void asus_dmi_check(void) |
1827 | { | 1827 | { |
1828 | const char *model; | 1828 | const char *model; |
1829 | 1829 | ||
@@ -1839,7 +1839,7 @@ static void __devinit asus_dmi_check(void) | |||
1839 | 1839 | ||
1840 | static bool asus_device_present; | 1840 | static bool asus_device_present; |
1841 | 1841 | ||
1842 | static int __devinit asus_acpi_add(struct acpi_device *device) | 1842 | static int asus_acpi_add(struct acpi_device *device) |
1843 | { | 1843 | { |
1844 | struct asus_laptop *asus; | 1844 | struct asus_laptop *asus; |
1845 | int result; | 1845 | int result; |
diff --git a/drivers/platform/x86/compal-laptop.c b/drivers/platform/x86/compal-laptop.c index 1887e2f166a4..475cc5242511 100644 --- a/drivers/platform/x86/compal-laptop.c +++ b/drivers/platform/x86/compal-laptop.c | |||
@@ -713,15 +713,15 @@ static struct attribute_group compal_attribute_group = { | |||
713 | .attrs = compal_attributes | 713 | .attrs = compal_attributes |
714 | }; | 714 | }; |
715 | 715 | ||
716 | static int __devinit compal_probe(struct platform_device *); | 716 | static int compal_probe(struct platform_device *); |
717 | static int __devexit compal_remove(struct platform_device *); | 717 | static int compal_remove(struct platform_device *); |
718 | static struct platform_driver compal_driver = { | 718 | static struct platform_driver compal_driver = { |
719 | .driver = { | 719 | .driver = { |
720 | .name = DRIVER_NAME, | 720 | .name = DRIVER_NAME, |
721 | .owner = THIS_MODULE, | 721 | .owner = THIS_MODULE, |
722 | }, | 722 | }, |
723 | .probe = compal_probe, | 723 | .probe = compal_probe, |
724 | .remove = __devexit_p(compal_remove) | 724 | .remove = compal_remove, |
725 | }; | 725 | }; |
726 | 726 | ||
727 | static enum power_supply_property compal_bat_properties[] = { | 727 | static enum power_supply_property compal_bat_properties[] = { |
@@ -1015,7 +1015,7 @@ err_backlight: | |||
1015 | return ret; | 1015 | return ret; |
1016 | } | 1016 | } |
1017 | 1017 | ||
1018 | static int __devinit compal_probe(struct platform_device *pdev) | 1018 | static int compal_probe(struct platform_device *pdev) |
1019 | { | 1019 | { |
1020 | int err; | 1020 | int err; |
1021 | struct compal_data *data; | 1021 | struct compal_data *data; |
@@ -1067,7 +1067,7 @@ static void __exit compal_cleanup(void) | |||
1067 | pr_info("Driver unloaded\n"); | 1067 | pr_info("Driver unloaded\n"); |
1068 | } | 1068 | } |
1069 | 1069 | ||
1070 | static int __devexit compal_remove(struct platform_device *pdev) | 1070 | static int compal_remove(struct platform_device *pdev) |
1071 | { | 1071 | { |
1072 | struct compal_data *data; | 1072 | struct compal_data *data; |
1073 | 1073 | ||
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index 927c33af67ec..fa3ee6209572 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c | |||
@@ -115,7 +115,7 @@ static const struct dmi_system_id dell_device_table[] __initconst = { | |||
115 | }; | 115 | }; |
116 | MODULE_DEVICE_TABLE(dmi, dell_device_table); | 116 | MODULE_DEVICE_TABLE(dmi, dell_device_table); |
117 | 117 | ||
118 | static struct dmi_system_id __devinitdata dell_quirks[] = { | 118 | static struct dmi_system_id dell_quirks[] = { |
119 | { | 119 | { |
120 | .callback = dmi_matched, | 120 | .callback = dmi_matched, |
121 | .ident = "Dell Vostro V130", | 121 | .ident = "Dell Vostro V130", |
@@ -503,7 +503,7 @@ static struct led_classdev touchpad_led = { | |||
503 | .flags = LED_CORE_SUSPENDRESUME, | 503 | .flags = LED_CORE_SUSPENDRESUME, |
504 | }; | 504 | }; |
505 | 505 | ||
506 | static int __devinit touchpad_led_init(struct device *dev) | 506 | static int touchpad_led_init(struct device *dev) |
507 | { | 507 | { |
508 | return led_classdev_register(dev, &touchpad_led); | 508 | return led_classdev_register(dev, &touchpad_led); |
509 | } | 509 | } |
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 5ca264179f4e..528e9495458d 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c | |||
@@ -1375,7 +1375,7 @@ static void cmsg_quirks(struct eeepc_laptop *eeepc) | |||
1375 | cmsg_quirk(eeepc, CM_ASL_TPD, "TPD"); | 1375 | cmsg_quirk(eeepc, CM_ASL_TPD, "TPD"); |
1376 | } | 1376 | } |
1377 | 1377 | ||
1378 | static int __devinit eeepc_acpi_init(struct eeepc_laptop *eeepc) | 1378 | static int eeepc_acpi_init(struct eeepc_laptop *eeepc) |
1379 | { | 1379 | { |
1380 | unsigned int init_flags; | 1380 | unsigned int init_flags; |
1381 | int result; | 1381 | int result; |
@@ -1407,7 +1407,7 @@ static int __devinit eeepc_acpi_init(struct eeepc_laptop *eeepc) | |||
1407 | return 0; | 1407 | return 0; |
1408 | } | 1408 | } |
1409 | 1409 | ||
1410 | static void __devinit eeepc_enable_camera(struct eeepc_laptop *eeepc) | 1410 | static void eeepc_enable_camera(struct eeepc_laptop *eeepc) |
1411 | { | 1411 | { |
1412 | /* | 1412 | /* |
1413 | * If the following call to set_acpi() fails, it's because there's no | 1413 | * If the following call to set_acpi() fails, it's because there's no |
@@ -1419,7 +1419,7 @@ static void __devinit eeepc_enable_camera(struct eeepc_laptop *eeepc) | |||
1419 | 1419 | ||
1420 | static bool eeepc_device_present; | 1420 | static bool eeepc_device_present; |
1421 | 1421 | ||
1422 | static int __devinit eeepc_acpi_add(struct acpi_device *device) | 1422 | static int eeepc_acpi_add(struct acpi_device *device) |
1423 | { | 1423 | { |
1424 | struct eeepc_laptop *eeepc; | 1424 | struct eeepc_laptop *eeepc; |
1425 | int result; | 1425 | int result; |
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); |
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 387183a2d6dd..1dde7accf27c 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c | |||
@@ -72,7 +72,7 @@ enum hp_wmi_event_ids { | |||
72 | HPWMI_LOCK_SWITCH = 7, | 72 | HPWMI_LOCK_SWITCH = 7, |
73 | }; | 73 | }; |
74 | 74 | ||
75 | static int __devinit hp_wmi_bios_setup(struct platform_device *device); | 75 | static int hp_wmi_bios_setup(struct platform_device *device); |
76 | static int __exit hp_wmi_bios_remove(struct platform_device *device); | 76 | static int __exit hp_wmi_bios_remove(struct platform_device *device); |
77 | static int hp_wmi_resume_handler(struct device *device); | 77 | static int hp_wmi_resume_handler(struct device *device); |
78 | 78 | ||
@@ -619,7 +619,7 @@ static void cleanup_sysfs(struct platform_device *device) | |||
619 | device_remove_file(&device->dev, &dev_attr_tablet); | 619 | device_remove_file(&device->dev, &dev_attr_tablet); |
620 | } | 620 | } |
621 | 621 | ||
622 | static int __devinit hp_wmi_rfkill_setup(struct platform_device *device) | 622 | static int hp_wmi_rfkill_setup(struct platform_device *device) |
623 | { | 623 | { |
624 | int err; | 624 | int err; |
625 | int wireless = 0; | 625 | int wireless = 0; |
@@ -698,7 +698,7 @@ register_wifi_error: | |||
698 | return err; | 698 | return err; |
699 | } | 699 | } |
700 | 700 | ||
701 | static int __devinit hp_wmi_rfkill2_setup(struct platform_device *device) | 701 | static int hp_wmi_rfkill2_setup(struct platform_device *device) |
702 | { | 702 | { |
703 | int err, i; | 703 | int err, i; |
704 | struct bios_rfkill2_state state; | 704 | struct bios_rfkill2_state state; |
@@ -778,7 +778,7 @@ fail: | |||
778 | return err; | 778 | return err; |
779 | } | 779 | } |
780 | 780 | ||
781 | static int __devinit hp_wmi_bios_setup(struct platform_device *device) | 781 | static int hp_wmi_bios_setup(struct platform_device *device) |
782 | { | 782 | { |
783 | int err; | 783 | int err; |
784 | 784 | ||
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 5ff4f2e314d2..64bfb30a52e9 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c | |||
@@ -298,7 +298,7 @@ static const struct file_operations debugfs_cfg_fops = { | |||
298 | .release = single_release, | 298 | .release = single_release, |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static int __devinit ideapad_debugfs_init(struct ideapad_private *priv) | 301 | static int ideapad_debugfs_init(struct ideapad_private *priv) |
302 | { | 302 | { |
303 | struct dentry *node; | 303 | struct dentry *node; |
304 | 304 | ||
@@ -468,8 +468,7 @@ static void ideapad_sync_rfk_state(struct ideapad_private *priv) | |||
468 | rfkill_set_hw_state(priv->rfk[i], hw_blocked); | 468 | rfkill_set_hw_state(priv->rfk[i], hw_blocked); |
469 | } | 469 | } |
470 | 470 | ||
471 | static int __devinit ideapad_register_rfkill(struct acpi_device *adevice, | 471 | static int ideapad_register_rfkill(struct acpi_device *adevice, int dev) |
472 | int dev) | ||
473 | { | 472 | { |
474 | struct ideapad_private *priv = dev_get_drvdata(&adevice->dev); | 473 | struct ideapad_private *priv = dev_get_drvdata(&adevice->dev); |
475 | int ret; | 474 | int ret; |
@@ -519,7 +518,7 @@ static void ideapad_unregister_rfkill(struct acpi_device *adevice, int dev) | |||
519 | /* | 518 | /* |
520 | * Platform device | 519 | * Platform device |
521 | */ | 520 | */ |
522 | static int __devinit ideapad_platform_init(struct ideapad_private *priv) | 521 | static int ideapad_platform_init(struct ideapad_private *priv) |
523 | { | 522 | { |
524 | int result; | 523 | int result; |
525 | 524 | ||
@@ -569,7 +568,7 @@ static const struct key_entry ideapad_keymap[] = { | |||
569 | { KE_END, 0 }, | 568 | { KE_END, 0 }, |
570 | }; | 569 | }; |
571 | 570 | ||
572 | static int __devinit ideapad_input_init(struct ideapad_private *priv) | 571 | static int ideapad_input_init(struct ideapad_private *priv) |
573 | { | 572 | { |
574 | struct input_dev *inputdev; | 573 | struct input_dev *inputdev; |
575 | int error; | 574 | int error; |
@@ -776,7 +775,7 @@ static void ideapad_sync_touchpad_state(struct acpi_device *adevice) | |||
776 | } | 775 | } |
777 | } | 776 | } |
778 | 777 | ||
779 | static int __devinit ideapad_acpi_add(struct acpi_device *adevice) | 778 | static int ideapad_acpi_add(struct acpi_device *adevice) |
780 | { | 779 | { |
781 | int ret, i; | 780 | int ret, i; |
782 | int cfg; | 781 | int cfg; |
@@ -835,7 +834,7 @@ platform_failed: | |||
835 | return ret; | 834 | return ret; |
836 | } | 835 | } |
837 | 836 | ||
838 | static int __devexit ideapad_acpi_remove(struct acpi_device *adevice, int type) | 837 | static int ideapad_acpi_remove(struct acpi_device *adevice, int type) |
839 | { | 838 | { |
840 | struct ideapad_private *priv = dev_get_drvdata(&adevice->dev); | 839 | struct ideapad_private *priv = dev_get_drvdata(&adevice->dev); |
841 | int i; | 840 | int i; |
diff --git a/drivers/platform/x86/intel_mid_powerbtn.c b/drivers/platform/x86/intel_mid_powerbtn.c index bcbad8452a6f..f59683aa13d5 100644 --- a/drivers/platform/x86/intel_mid_powerbtn.c +++ b/drivers/platform/x86/intel_mid_powerbtn.c | |||
@@ -56,7 +56,7 @@ static irqreturn_t mfld_pb_isr(int irq, void *dev_id) | |||
56 | return IRQ_HANDLED; | 56 | return IRQ_HANDLED; |
57 | } | 57 | } |
58 | 58 | ||
59 | static int __devinit mfld_pb_probe(struct platform_device *pdev) | 59 | static int mfld_pb_probe(struct platform_device *pdev) |
60 | { | 60 | { |
61 | struct input_dev *input; | 61 | struct input_dev *input; |
62 | int irq = platform_get_irq(pdev, 0); | 62 | int irq = platform_get_irq(pdev, 0); |
@@ -121,7 +121,7 @@ err_free_input: | |||
121 | return error; | 121 | return error; |
122 | } | 122 | } |
123 | 123 | ||
124 | static int __devexit mfld_pb_remove(struct platform_device *pdev) | 124 | static int mfld_pb_remove(struct platform_device *pdev) |
125 | { | 125 | { |
126 | struct input_dev *input = platform_get_drvdata(pdev); | 126 | struct input_dev *input = platform_get_drvdata(pdev); |
127 | int irq = platform_get_irq(pdev, 0); | 127 | int irq = platform_get_irq(pdev, 0); |
@@ -139,7 +139,7 @@ static struct platform_driver mfld_pb_driver = { | |||
139 | .owner = THIS_MODULE, | 139 | .owner = THIS_MODULE, |
140 | }, | 140 | }, |
141 | .probe = mfld_pb_probe, | 141 | .probe = mfld_pb_probe, |
142 | .remove = __devexit_p(mfld_pb_remove), | 142 | .remove = mfld_pb_remove, |
143 | }; | 143 | }; |
144 | 144 | ||
145 | module_platform_driver(mfld_pb_driver); | 145 | module_platform_driver(mfld_pb_driver); |
diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c index 93de09019d1d..81c491e74b34 100644 --- a/drivers/platform/x86/intel_mid_thermal.c +++ b/drivers/platform/x86/intel_mid_thermal.c | |||
@@ -563,7 +563,7 @@ static struct platform_driver mid_thermal_driver = { | |||
563 | .pm = &mid_thermal_pm, | 563 | .pm = &mid_thermal_pm, |
564 | }, | 564 | }, |
565 | .probe = mid_thermal_probe, | 565 | .probe = mid_thermal_probe, |
566 | .remove = __devexit_p(mid_thermal_remove), | 566 | .remove = mid_thermal_remove, |
567 | .id_table = therm_id_table, | 567 | .id_table = therm_id_table, |
568 | }; | 568 | }; |
569 | 569 | ||
diff --git a/drivers/platform/x86/intel_oaktrail.c b/drivers/platform/x86/intel_oaktrail.c index 79a0c2f6be53..f6f18cde0f11 100644 --- a/drivers/platform/x86/intel_oaktrail.c +++ b/drivers/platform/x86/intel_oaktrail.c | |||
@@ -278,12 +278,12 @@ static void oaktrail_backlight_exit(void) | |||
278 | backlight_device_unregister(oaktrail_bl_device); | 278 | backlight_device_unregister(oaktrail_bl_device); |
279 | } | 279 | } |
280 | 280 | ||
281 | static int __devinit oaktrail_probe(struct platform_device *pdev) | 281 | static int oaktrail_probe(struct platform_device *pdev) |
282 | { | 282 | { |
283 | return 0; | 283 | return 0; |
284 | } | 284 | } |
285 | 285 | ||
286 | static int __devexit oaktrail_remove(struct platform_device *pdev) | 286 | static int oaktrail_remove(struct platform_device *pdev) |
287 | { | 287 | { |
288 | return 0; | 288 | return 0; |
289 | } | 289 | } |
@@ -294,7 +294,7 @@ static struct platform_driver oaktrail_driver = { | |||
294 | .owner = THIS_MODULE, | 294 | .owner = THIS_MODULE, |
295 | }, | 295 | }, |
296 | .probe = oaktrail_probe, | 296 | .probe = oaktrail_probe, |
297 | .remove = __devexit_p(oaktrail_remove) | 297 | .remove = oaktrail_remove, |
298 | }; | 298 | }; |
299 | 299 | ||
300 | static int dmi_check_cb(const struct dmi_system_id *id) | 300 | static int dmi_check_cb(const struct dmi_system_id *id) |
diff --git a/drivers/platform/x86/intel_pmic_gpio.c b/drivers/platform/x86/intel_pmic_gpio.c index 1686c1e07d5d..6f4b7289a059 100644 --- a/drivers/platform/x86/intel_pmic_gpio.c +++ b/drivers/platform/x86/intel_pmic_gpio.c | |||
@@ -230,7 +230,7 @@ static irqreturn_t pmic_irq_handler(int irq, void *data) | |||
230 | return ret; | 230 | return ret; |
231 | } | 231 | } |
232 | 232 | ||
233 | static int __devinit platform_pmic_gpio_probe(struct platform_device *pdev) | 233 | static int platform_pmic_gpio_probe(struct platform_device *pdev) |
234 | { | 234 | { |
235 | struct device *dev = &pdev->dev; | 235 | struct device *dev = &pdev->dev; |
236 | int irq = platform_get_irq(pdev, 0); | 236 | int irq = platform_get_irq(pdev, 0); |
diff --git a/drivers/platform/x86/samsung-q10.c b/drivers/platform/x86/samsung-q10.c index 1e54ae74274c..5f770059fd4d 100644 --- a/drivers/platform/x86/samsung-q10.c +++ b/drivers/platform/x86/samsung-q10.c | |||
@@ -77,7 +77,7 @@ static int samsungq10_resume(struct device *dev) | |||
77 | static SIMPLE_DEV_PM_OPS(samsungq10_pm_ops, | 77 | static SIMPLE_DEV_PM_OPS(samsungq10_pm_ops, |
78 | samsungq10_suspend, samsungq10_resume); | 78 | samsungq10_suspend, samsungq10_resume); |
79 | 79 | ||
80 | static int __devinit samsungq10_probe(struct platform_device *pdev) | 80 | static int samsungq10_probe(struct platform_device *pdev) |
81 | { | 81 | { |
82 | 82 | ||
83 | struct backlight_properties props; | 83 | struct backlight_properties props; |
@@ -99,7 +99,7 @@ static int __devinit samsungq10_probe(struct platform_device *pdev) | |||
99 | return 0; | 99 | return 0; |
100 | } | 100 | } |
101 | 101 | ||
102 | static int __devexit samsungq10_remove(struct platform_device *pdev) | 102 | static int samsungq10_remove(struct platform_device *pdev) |
103 | { | 103 | { |
104 | 104 | ||
105 | struct backlight_device *bd = platform_get_drvdata(pdev); | 105 | struct backlight_device *bd = platform_get_drvdata(pdev); |
@@ -119,7 +119,7 @@ static struct platform_driver samsungq10_driver = { | |||
119 | .pm = &samsungq10_pm_ops, | 119 | .pm = &samsungq10_pm_ops, |
120 | }, | 120 | }, |
121 | .probe = samsungq10_probe, | 121 | .probe = samsungq10_probe, |
122 | .remove = __devexit_p(samsungq10_remove), | 122 | .remove = samsungq10_remove, |
123 | }; | 123 | }; |
124 | 124 | ||
125 | static struct platform_device *samsungq10_device; | 125 | static struct platform_device *samsungq10_device; |
diff --git a/drivers/platform/x86/tc1100-wmi.c b/drivers/platform/x86/tc1100-wmi.c index e24f5ae475af..9b93fdb61ed7 100644 --- a/drivers/platform/x86/tc1100-wmi.c +++ b/drivers/platform/x86/tc1100-wmi.c | |||
@@ -187,7 +187,7 @@ static int __init tc1100_probe(struct platform_device *device) | |||
187 | } | 187 | } |
188 | 188 | ||
189 | 189 | ||
190 | static int __devexit tc1100_remove(struct platform_device *device) | 190 | static int tc1100_remove(struct platform_device *device) |
191 | { | 191 | { |
192 | sysfs_remove_group(&device->dev.kobj, &tc1100_attribute_group); | 192 | sysfs_remove_group(&device->dev.kobj, &tc1100_attribute_group); |
193 | 193 | ||
@@ -241,7 +241,7 @@ static struct platform_driver tc1100_driver = { | |||
241 | .pm = &tc1100_pm_ops, | 241 | .pm = &tc1100_pm_ops, |
242 | #endif | 242 | #endif |
243 | }, | 243 | }, |
244 | .remove = __devexit_p(tc1100_remove), | 244 | .remove = tc1100_remove, |
245 | }; | 245 | }; |
246 | 246 | ||
247 | static int __init tc1100_init(void) | 247 | static int __init tc1100_init(void) |
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 75dd651664ae..f946ca7cb762 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c | |||
@@ -6732,7 +6732,7 @@ static int volume_alsa_mute_put(struct snd_kcontrol *kcontrol, | |||
6732 | return volume_alsa_set_mute(!ucontrol->value.integer.value[0]); | 6732 | return volume_alsa_set_mute(!ucontrol->value.integer.value[0]); |
6733 | } | 6733 | } |
6734 | 6734 | ||
6735 | static struct snd_kcontrol_new volume_alsa_control_vol __devinitdata = { | 6735 | static struct snd_kcontrol_new volume_alsa_control_vol = { |
6736 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 6736 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
6737 | .name = "Console Playback Volume", | 6737 | .name = "Console Playback Volume", |
6738 | .index = 0, | 6738 | .index = 0, |
@@ -6741,7 +6741,7 @@ static struct snd_kcontrol_new volume_alsa_control_vol __devinitdata = { | |||
6741 | .get = volume_alsa_vol_get, | 6741 | .get = volume_alsa_vol_get, |
6742 | }; | 6742 | }; |
6743 | 6743 | ||
6744 | static struct snd_kcontrol_new volume_alsa_control_mute __devinitdata = { | 6744 | static struct snd_kcontrol_new volume_alsa_control_mute = { |
6745 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 6745 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
6746 | .name = "Console Playback Switch", | 6746 | .name = "Console Playback Switch", |
6747 | .index = 0, | 6747 | .index = 0, |
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 5f1256d5e933..c2727895794c 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c | |||
@@ -150,7 +150,7 @@ static const struct acpi_device_id toshiba_device_ids[] = { | |||
150 | }; | 150 | }; |
151 | MODULE_DEVICE_TABLE(acpi, toshiba_device_ids); | 151 | MODULE_DEVICE_TABLE(acpi, toshiba_device_ids); |
152 | 152 | ||
153 | static const struct key_entry toshiba_acpi_keymap[] __devinitconst = { | 153 | static const struct key_entry toshiba_acpi_keymap[] = { |
154 | { KE_KEY, 0x101, { KEY_MUTE } }, | 154 | { KE_KEY, 0x101, { KEY_MUTE } }, |
155 | { KE_KEY, 0x102, { KEY_ZOOMOUT } }, | 155 | { KE_KEY, 0x102, { KEY_ZOOMOUT } }, |
156 | { KE_KEY, 0x103, { KEY_ZOOMIN } }, | 156 | { KE_KEY, 0x103, { KEY_ZOOMIN } }, |
@@ -875,8 +875,7 @@ static const struct file_operations version_proc_fops = { | |||
875 | 875 | ||
876 | #define PROC_TOSHIBA "toshiba" | 876 | #define PROC_TOSHIBA "toshiba" |
877 | 877 | ||
878 | static void __devinit | 878 | static void create_toshiba_proc_entries(struct toshiba_acpi_dev *dev) |
879 | create_toshiba_proc_entries(struct toshiba_acpi_dev *dev) | ||
880 | { | 879 | { |
881 | if (dev->backlight_dev) | 880 | if (dev->backlight_dev) |
882 | proc_create_data("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir, | 881 | proc_create_data("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir, |
@@ -979,7 +978,7 @@ static void toshiba_acpi_report_hotkey(struct toshiba_acpi_dev *dev, | |||
979 | pr_info("Unknown key %x\n", scancode); | 978 | pr_info("Unknown key %x\n", scancode); |
980 | } | 979 | } |
981 | 980 | ||
982 | static int __devinit toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev) | 981 | static int toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev) |
983 | { | 982 | { |
984 | acpi_status status; | 983 | acpi_status status; |
985 | acpi_handle ec_handle, handle; | 984 | acpi_handle ec_handle, handle; |
@@ -1069,7 +1068,7 @@ static int __devinit toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev) | |||
1069 | return error; | 1068 | return error; |
1070 | } | 1069 | } |
1071 | 1070 | ||
1072 | static int __devinit toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev) | 1071 | static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev) |
1073 | { | 1072 | { |
1074 | struct backlight_properties props; | 1073 | struct backlight_properties props; |
1075 | int brightness; | 1074 | int brightness; |
@@ -1154,7 +1153,7 @@ static int toshiba_acpi_remove(struct acpi_device *acpi_dev, int type) | |||
1154 | return 0; | 1153 | return 0; |
1155 | } | 1154 | } |
1156 | 1155 | ||
1157 | static const char * __devinit find_hci_method(acpi_handle handle) | 1156 | static const char *find_hci_method(acpi_handle handle) |
1158 | { | 1157 | { |
1159 | acpi_status status; | 1158 | acpi_status status; |
1160 | acpi_handle hci_handle; | 1159 | acpi_handle hci_handle; |
@@ -1170,7 +1169,7 @@ static const char * __devinit find_hci_method(acpi_handle handle) | |||
1170 | return NULL; | 1169 | return NULL; |
1171 | } | 1170 | } |
1172 | 1171 | ||
1173 | static int __devinit toshiba_acpi_add(struct acpi_device *acpi_dev) | 1172 | static int toshiba_acpi_add(struct acpi_device *acpi_dev) |
1174 | { | 1173 | { |
1175 | struct toshiba_acpi_dev *dev; | 1174 | struct toshiba_acpi_dev *dev; |
1176 | const char *hci_method; | 1175 | const char *hci_method; |
diff --git a/drivers/platform/x86/xo1-rfkill.c b/drivers/platform/x86/xo1-rfkill.c index 1da13ed34b04..4bd17248dfc6 100644 --- a/drivers/platform/x86/xo1-rfkill.c +++ b/drivers/platform/x86/xo1-rfkill.c | |||
@@ -40,7 +40,7 @@ static const struct rfkill_ops rfkill_ops = { | |||
40 | .set_block = rfkill_set_block, | 40 | .set_block = rfkill_set_block, |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static int __devinit xo1_rfkill_probe(struct platform_device *pdev) | 43 | static int xo1_rfkill_probe(struct platform_device *pdev) |
44 | { | 44 | { |
45 | struct rfkill *rfk; | 45 | struct rfkill *rfk; |
46 | int r; | 46 | int r; |
@@ -60,7 +60,7 @@ static int __devinit xo1_rfkill_probe(struct platform_device *pdev) | |||
60 | return 0; | 60 | return 0; |
61 | } | 61 | } |
62 | 62 | ||
63 | static int __devexit xo1_rfkill_remove(struct platform_device *pdev) | 63 | static int xo1_rfkill_remove(struct platform_device *pdev) |
64 | { | 64 | { |
65 | struct rfkill *rfk = platform_get_drvdata(pdev); | 65 | struct rfkill *rfk = platform_get_drvdata(pdev); |
66 | rfkill_unregister(rfk); | 66 | rfkill_unregister(rfk); |
@@ -74,7 +74,7 @@ static struct platform_driver xo1_rfkill_driver = { | |||
74 | .owner = THIS_MODULE, | 74 | .owner = THIS_MODULE, |
75 | }, | 75 | }, |
76 | .probe = xo1_rfkill_probe, | 76 | .probe = xo1_rfkill_probe, |
77 | .remove = __devexit_p(xo1_rfkill_remove), | 77 | .remove = xo1_rfkill_remove, |
78 | }; | 78 | }; |
79 | 79 | ||
80 | module_platform_driver(xo1_rfkill_driver); | 80 | module_platform_driver(xo1_rfkill_driver); |