aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/acer-wmi.c68
-rw-r--r--drivers/platform/x86/acerhdf.c2
-rw-r--r--drivers/platform/x86/amilo-rfkill.c4
-rw-r--r--drivers/platform/x86/apple-gmux.c7
-rw-r--r--drivers/platform/x86/asus-laptop.c25
-rw-r--r--drivers/platform/x86/compal-laptop.c10
-rw-r--r--drivers/platform/x86/dell-laptop.c4
-rw-r--r--drivers/platform/x86/eeepc-laptop.c6
-rw-r--r--drivers/platform/x86/fujitsu-tablet.c17
-rw-r--r--drivers/platform/x86/hp-wmi.c8
-rw-r--r--drivers/platform/x86/ideapad-laptop.c13
-rw-r--r--drivers/platform/x86/intel_mid_powerbtn.c6
-rw-r--r--drivers/platform/x86/intel_mid_thermal.c2
-rw-r--r--drivers/platform/x86/intel_oaktrail.c6
-rw-r--r--drivers/platform/x86/intel_pmic_gpio.c2
-rw-r--r--drivers/platform/x86/samsung-laptop.c10
-rw-r--r--drivers/platform/x86/samsung-q10.c6
-rw-r--r--drivers/platform/x86/sony-laptop.c15
-rw-r--r--drivers/platform/x86/tc1100-wmi.c4
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c4
-rw-r--r--drivers/platform/x86/toshiba_acpi.c13
-rw-r--r--drivers/platform/x86/xo1-rfkill.c6
22 files changed, 124 insertions, 114 deletions
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 934d861a3235..afed7018a2b5 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -125,8 +125,11 @@ static const struct key_entry acer_wmi_keymap[] = {
125 {KE_IGNORE, 0x63, {KEY_BRIGHTNESSDOWN} }, 125 {KE_IGNORE, 0x63, {KEY_BRIGHTNESSDOWN} },
126 {KE_KEY, 0x64, {KEY_SWITCHVIDEOMODE} }, /* Display Switch */ 126 {KE_KEY, 0x64, {KEY_SWITCHVIDEOMODE} }, /* Display Switch */
127 {KE_IGNORE, 0x81, {KEY_SLEEP} }, 127 {KE_IGNORE, 0x81, {KEY_SLEEP} },
128 {KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} }, /* Touch Pad On/Off */ 128 {KE_KEY, 0x82, {KEY_TOUCHPAD_TOGGLE} }, /* Touch Pad Toggle */
129 {KE_KEY, KEY_TOUCHPAD_ON, {KEY_TOUCHPAD_ON} },
130 {KE_KEY, KEY_TOUCHPAD_OFF, {KEY_TOUCHPAD_OFF} },
129 {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} }, 131 {KE_IGNORE, 0x83, {KEY_TOUCHPAD_TOGGLE} },
132 {KE_KEY, 0x85, {KEY_TOUCHPAD_TOGGLE} },
130 {KE_END, 0} 133 {KE_END, 0}
131}; 134};
132 135
@@ -147,6 +150,7 @@ struct event_return_value {
147#define ACER_WMID3_GDS_THREEG (1<<6) /* 3G */ 150#define ACER_WMID3_GDS_THREEG (1<<6) /* 3G */
148#define ACER_WMID3_GDS_WIMAX (1<<7) /* WiMAX */ 151#define ACER_WMID3_GDS_WIMAX (1<<7) /* WiMAX */
149#define ACER_WMID3_GDS_BLUETOOTH (1<<11) /* BT */ 152#define ACER_WMID3_GDS_BLUETOOTH (1<<11) /* BT */
153#define ACER_WMID3_GDS_TOUCHPAD (1<<1) /* Touchpad */
150 154
151struct lm_input_params { 155struct lm_input_params {
152 u8 function_num; /* Function Number */ 156 u8 function_num; /* Function Number */
@@ -335,7 +339,7 @@ static struct quirk_entry quirk_lenovo_ideapad_s205 = {
335}; 339};
336 340
337/* The Aspire One has a dummy ACPI-WMI interface - disable it */ 341/* The Aspire One has a dummy ACPI-WMI interface - disable it */
338static struct dmi_system_id __devinitdata acer_blacklist[] = { 342static struct dmi_system_id acer_blacklist[] = {
339 { 343 {
340 .ident = "Acer Aspire One (SSD)", 344 .ident = "Acer Aspire One (SSD)",
341 .matches = { 345 .matches = {
@@ -875,7 +879,7 @@ WMI_execute_u32(u32 method_id, u32 in, u32 *out)
875 struct acpi_buffer input = { (acpi_size) sizeof(u32), (void *)(&in) }; 879 struct acpi_buffer input = { (acpi_size) sizeof(u32), (void *)(&in) };
876 struct acpi_buffer result = { ACPI_ALLOCATE_BUFFER, NULL }; 880 struct acpi_buffer result = { ACPI_ALLOCATE_BUFFER, NULL };
877 union acpi_object *obj; 881 union acpi_object *obj;
878 u32 tmp; 882 u32 tmp = 0;
879 acpi_status status; 883 acpi_status status;
880 884
881 status = wmi_evaluate_method(WMID_GUID1, 1, method_id, &input, &result); 885 status = wmi_evaluate_method(WMID_GUID1, 1, method_id, &input, &result);
@@ -884,14 +888,14 @@ WMI_execute_u32(u32 method_id, u32 in, u32 *out)
884 return status; 888 return status;
885 889
886 obj = (union acpi_object *) result.pointer; 890 obj = (union acpi_object *) result.pointer;
887 if (obj && obj->type == ACPI_TYPE_BUFFER && 891 if (obj) {
888 (obj->buffer.length == sizeof(u32) || 892 if (obj->type == ACPI_TYPE_BUFFER &&
889 obj->buffer.length == sizeof(u64))) { 893 (obj->buffer.length == sizeof(u32) ||
890 tmp = *((u32 *) obj->buffer.pointer); 894 obj->buffer.length == sizeof(u64))) {
891 } else if (obj->type == ACPI_TYPE_INTEGER) { 895 tmp = *((u32 *) obj->buffer.pointer);
892 tmp = (u32) obj->integer.value; 896 } else if (obj->type == ACPI_TYPE_INTEGER) {
893 } else { 897 tmp = (u32) obj->integer.value;
894 tmp = 0; 898 }
895 } 899 }
896 900
897 if (out) 901 if (out)
@@ -1193,12 +1197,14 @@ static acpi_status WMID_set_capabilities(void)
1193 return status; 1197 return status;
1194 1198
1195 obj = (union acpi_object *) out.pointer; 1199 obj = (union acpi_object *) out.pointer;
1196 if (obj && obj->type == ACPI_TYPE_BUFFER && 1200 if (obj) {
1197 (obj->buffer.length == sizeof(u32) || 1201 if (obj->type == ACPI_TYPE_BUFFER &&
1198 obj->buffer.length == sizeof(u64))) { 1202 (obj->buffer.length == sizeof(u32) ||
1199 devices = *((u32 *) obj->buffer.pointer); 1203 obj->buffer.length == sizeof(u64))) {
1200 } else if (obj->type == ACPI_TYPE_INTEGER) { 1204 devices = *((u32 *) obj->buffer.pointer);
1201 devices = (u32) obj->integer.value; 1205 } else if (obj->type == ACPI_TYPE_INTEGER) {
1206 devices = (u32) obj->integer.value;
1207 }
1202 } else { 1208 } else {
1203 kfree(out.pointer); 1209 kfree(out.pointer);
1204 return AE_ERROR; 1210 return AE_ERROR;
@@ -1330,7 +1336,7 @@ static struct led_classdev mail_led = {
1330 .brightness_set = mail_led_set, 1336 .brightness_set = mail_led_set,
1331}; 1337};
1332 1338
1333static int __devinit acer_led_init(struct device *dev) 1339static int acer_led_init(struct device *dev)
1334{ 1340{
1335 return led_classdev_register(dev, &mail_led); 1341 return led_classdev_register(dev, &mail_led);
1336} 1342}
@@ -1372,7 +1378,7 @@ static const struct backlight_ops acer_bl_ops = {
1372 .update_status = update_bl_status, 1378 .update_status = update_bl_status,
1373}; 1379};
1374 1380
1375static int __devinit acer_backlight_init(struct device *dev) 1381static int acer_backlight_init(struct device *dev)
1376{ 1382{
1377 struct backlight_properties props; 1383 struct backlight_properties props;
1378 struct backlight_device *bd; 1384 struct backlight_device *bd;
@@ -1676,6 +1682,7 @@ static void acer_wmi_notify(u32 value, void *context)
1676 acpi_status status; 1682 acpi_status status;
1677 u16 device_state; 1683 u16 device_state;
1678 const struct key_entry *key; 1684 const struct key_entry *key;
1685 u32 scancode;
1679 1686
1680 status = wmi_get_event_data(value, &response); 1687 status = wmi_get_event_data(value, &response);
1681 if (status != AE_OK) { 1688 if (status != AE_OK) {
@@ -1712,6 +1719,7 @@ static void acer_wmi_notify(u32 value, void *context)
1712 pr_warn("Unknown key number - 0x%x\n", 1719 pr_warn("Unknown key number - 0x%x\n",
1713 return_value.key_num); 1720 return_value.key_num);
1714 } else { 1721 } else {
1722 scancode = return_value.key_num;
1715 switch (key->keycode) { 1723 switch (key->keycode) {
1716 case KEY_WLAN: 1724 case KEY_WLAN:
1717 case KEY_BLUETOOTH: 1725 case KEY_BLUETOOTH:
@@ -1725,9 +1733,11 @@ static void acer_wmi_notify(u32 value, void *context)
1725 rfkill_set_sw_state(bluetooth_rfkill, 1733 rfkill_set_sw_state(bluetooth_rfkill,
1726 !(device_state & ACER_WMID3_GDS_BLUETOOTH)); 1734 !(device_state & ACER_WMID3_GDS_BLUETOOTH));
1727 break; 1735 break;
1736 case KEY_TOUCHPAD_TOGGLE:
1737 scancode = (device_state & ACER_WMID3_GDS_TOUCHPAD) ?
1738 KEY_TOUCHPAD_ON : KEY_TOUCHPAD_OFF;
1728 } 1739 }
1729 sparse_keymap_report_entry(acer_wmi_input_dev, key, 1740 sparse_keymap_report_event(acer_wmi_input_dev, scancode, 1, true);
1730 1, true);
1731 } 1741 }
1732 break; 1742 break;
1733 case WMID_ACCEL_EVENT: 1743 case WMID_ACCEL_EVENT:
@@ -1946,12 +1956,14 @@ static u32 get_wmid_devices(void)
1946 return 0; 1956 return 0;
1947 1957
1948 obj = (union acpi_object *) out.pointer; 1958 obj = (union acpi_object *) out.pointer;
1949 if (obj && obj->type == ACPI_TYPE_BUFFER && 1959 if (obj) {
1950 (obj->buffer.length == sizeof(u32) || 1960 if (obj->type == ACPI_TYPE_BUFFER &&
1951 obj->buffer.length == sizeof(u64))) { 1961 (obj->buffer.length == sizeof(u32) ||
1952 devices = *((u32 *) obj->buffer.pointer); 1962 obj->buffer.length == sizeof(u64))) {
1953 } else if (obj->type == ACPI_TYPE_INTEGER) { 1963 devices = *((u32 *) obj->buffer.pointer);
1954 devices = (u32) obj->integer.value; 1964 } else if (obj->type == ACPI_TYPE_INTEGER) {
1965 devices = (u32) obj->integer.value;
1966 }
1955 } 1967 }
1956 1968
1957 kfree(out.pointer); 1969 kfree(out.pointer);
@@ -1961,7 +1973,7 @@ static u32 get_wmid_devices(void)
1961/* 1973/*
1962 * Platform device 1974 * Platform device
1963 */ 1975 */
1964static int __devinit acer_platform_probe(struct platform_device *device) 1976static int acer_platform_probe(struct platform_device *device)
1965{ 1977{
1966 int err; 1978 int err;
1967 1979
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
518static int __devinit acerhdf_probe(struct platform_device *device) 518static 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
77static const struct dmi_system_id __devinitconst amilo_rfkill_id_table[] = { 77static 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[] = {
95static struct platform_device *amilo_rfkill_pdev; 95static struct platform_device *amilo_rfkill_pdev;
96static struct rfkill *amilo_rfkill_dev; 96static struct rfkill *amilo_rfkill_dev;
97 97
98static int __devinit amilo_rfkill_probe(struct platform_device *device) 98static 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
414static int __devinit gmux_probe(struct pnp_dev *pnp, 414static 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
580static void __devexit gmux_remove(struct pnp_dev *pnp) 579static 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[] = {
609static struct pnp_driver gmux_pnp_driver = { 608static 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..fcde4e528819 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -860,8 +860,10 @@ static ssize_t show_infos(struct device *dev,
860 /* 860 /*
861 * The HWRS method return informations about the hardware. 861 * The HWRS method return informations about the hardware.
862 * 0x80 bit is for WLAN, 0x100 for Bluetooth. 862 * 0x80 bit is for WLAN, 0x100 for Bluetooth.
863 * 0x40 for WWAN, 0x10 for WIMAX.
863 * The significance of others is yet to be found. 864 * The significance of others is yet to be found.
864 * If we don't find the method, we assume the device are present. 865 * We don't currently use this for device detection, and it
866 * takes several seconds to run on some systems.
865 */ 867 */
866 rv = acpi_evaluate_integer(asus->handle, "HWRS", NULL, &temp); 868 rv = acpi_evaluate_integer(asus->handle, "HWRS", NULL, &temp);
867 if (!ACPI_FAILURE(rv)) 869 if (!ACPI_FAILURE(rv))
@@ -1682,7 +1684,7 @@ static int asus_laptop_get_info(struct asus_laptop *asus)
1682{ 1684{
1683 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; 1685 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
1684 union acpi_object *model = NULL; 1686 union acpi_object *model = NULL;
1685 unsigned long long bsts_result, hwrs_result; 1687 unsigned long long bsts_result;
1686 char *string = NULL; 1688 char *string = NULL;
1687 acpi_status status; 1689 acpi_status status;
1688 1690
@@ -1741,20 +1743,9 @@ static int asus_laptop_get_info(struct asus_laptop *asus)
1741 return -ENOMEM; 1743 return -ENOMEM;
1742 } 1744 }
1743 1745
1744 if (*string) 1746 if (string)
1745 pr_notice(" %s model detected\n", string); 1747 pr_notice(" %s model detected\n", string);
1746 1748
1747 /*
1748 * The HWRS method return informations about the hardware.
1749 * 0x80 bit is for WLAN, 0x100 for Bluetooth,
1750 * 0x40 for WWAN, 0x10 for WIMAX.
1751 * The significance of others is yet to be found.
1752 */
1753 status =
1754 acpi_evaluate_integer(asus->handle, "HWRS", NULL, &hwrs_result);
1755 if (!ACPI_FAILURE(status))
1756 pr_notice(" HWRS returned %x", (int)hwrs_result);
1757
1758 if (!acpi_check_handle(asus->handle, METHOD_WL_STATUS, NULL)) 1749 if (!acpi_check_handle(asus->handle, METHOD_WL_STATUS, NULL))
1759 asus->have_rsts = true; 1750 asus->have_rsts = true;
1760 1751
@@ -1763,7 +1754,7 @@ static int asus_laptop_get_info(struct asus_laptop *asus)
1763 return AE_OK; 1754 return AE_OK;
1764} 1755}
1765 1756
1766static int __devinit asus_acpi_init(struct asus_laptop *asus) 1757static int asus_acpi_init(struct asus_laptop *asus)
1767{ 1758{
1768 int result = 0; 1759 int result = 0;
1769 1760
@@ -1823,7 +1814,7 @@ static int __devinit asus_acpi_init(struct asus_laptop *asus)
1823 return result; 1814 return result;
1824} 1815}
1825 1816
1826static void __devinit asus_dmi_check(void) 1817static void asus_dmi_check(void)
1827{ 1818{
1828 const char *model; 1819 const char *model;
1829 1820
@@ -1839,7 +1830,7 @@ static void __devinit asus_dmi_check(void)
1839 1830
1840static bool asus_device_present; 1831static bool asus_device_present;
1841 1832
1842static int __devinit asus_acpi_add(struct acpi_device *device) 1833static int asus_acpi_add(struct acpi_device *device)
1843{ 1834{
1844 struct asus_laptop *asus; 1835 struct asus_laptop *asus;
1845 int result; 1836 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
716static int __devinit compal_probe(struct platform_device *); 716static int compal_probe(struct platform_device *);
717static int __devexit compal_remove(struct platform_device *); 717static int compal_remove(struct platform_device *);
718static struct platform_driver compal_driver = { 718static 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
727static enum power_supply_property compal_bat_properties[] = { 727static enum power_supply_property compal_bat_properties[] = {
@@ -1015,7 +1015,7 @@ err_backlight:
1015 return ret; 1015 return ret;
1016} 1016}
1017 1017
1018static int __devinit compal_probe(struct platform_device *pdev) 1018static 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
1070static int __devexit compal_remove(struct platform_device *pdev) 1070static 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};
116MODULE_DEVICE_TABLE(dmi, dell_device_table); 116MODULE_DEVICE_TABLE(dmi, dell_device_table);
117 117
118static struct dmi_system_id __devinitdata dell_quirks[] = { 118static 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
506static int __devinit touchpad_led_init(struct device *dev) 506static 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
1378static int __devinit eeepc_acpi_init(struct eeepc_laptop *eeepc) 1378static 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
1410static void __devinit eeepc_enable_camera(struct eeepc_laptop *eeepc) 1410static 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
1420static bool eeepc_device_present; 1420static bool eeepc_device_present;
1421 1421
1422static int __devinit eeepc_acpi_add(struct acpi_device *device) 1422static 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
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);
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
75static int __devinit hp_wmi_bios_setup(struct platform_device *device); 75static int hp_wmi_bios_setup(struct platform_device *device);
76static int __exit hp_wmi_bios_remove(struct platform_device *device); 76static int __exit hp_wmi_bios_remove(struct platform_device *device);
77static int hp_wmi_resume_handler(struct device *device); 77static 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
622static int __devinit hp_wmi_rfkill_setup(struct platform_device *device) 622static 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
701static int __devinit hp_wmi_rfkill2_setup(struct platform_device *device) 701static 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
781static int __devinit hp_wmi_bios_setup(struct platform_device *device) 781static 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
301static int __devinit ideapad_debugfs_init(struct ideapad_private *priv) 301static 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
471static int __devinit ideapad_register_rfkill(struct acpi_device *adevice, 471static 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 */
522static int __devinit ideapad_platform_init(struct ideapad_private *priv) 521static 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
572static int __devinit ideapad_input_init(struct ideapad_private *priv) 571static 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
779static int __devinit ideapad_acpi_add(struct acpi_device *adevice) 778static 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
838static int __devexit ideapad_acpi_remove(struct acpi_device *adevice, int type) 837static 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
59static int __devinit mfld_pb_probe(struct platform_device *pdev) 59static 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
124static int __devexit mfld_pb_remove(struct platform_device *pdev) 124static 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
145module_platform_driver(mfld_pb_driver); 145module_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
281static int __devinit oaktrail_probe(struct platform_device *pdev) 281static int oaktrail_probe(struct platform_device *pdev)
282{ 282{
283 return 0; 283 return 0;
284} 284}
285 285
286static int __devexit oaktrail_remove(struct platform_device *pdev) 286static 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
300static int dmi_check_cb(const struct dmi_system_id *id) 300static 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
233static int __devinit platform_pmic_gpio_probe(struct platform_device *pdev) 233static 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-laptop.c b/drivers/platform/x86/samsung-laptop.c
index dd90d15f5210..71623a2ff3e8 100644
--- a/drivers/platform/x86/samsung-laptop.c
+++ b/drivers/platform/x86/samsung-laptop.c
@@ -1523,6 +1523,16 @@ static struct dmi_system_id __initdata samsung_dmi_table[] = {
1523 }, 1523 },
1524 .driver_data = &samsung_broken_acpi_video, 1524 .driver_data = &samsung_broken_acpi_video,
1525 }, 1525 },
1526 {
1527 .callback = samsung_dmi_matched,
1528 .ident = "N250P",
1529 .matches = {
1530 DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
1531 DMI_MATCH(DMI_PRODUCT_NAME, "N250P"),
1532 DMI_MATCH(DMI_BOARD_NAME, "N250P"),
1533 },
1534 .driver_data = &samsung_broken_acpi_video,
1535 },
1526 { }, 1536 { },
1527}; 1537};
1528MODULE_DEVICE_TABLE(dmi, samsung_dmi_table); 1538MODULE_DEVICE_TABLE(dmi, samsung_dmi_table);
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)
77static SIMPLE_DEV_PM_OPS(samsungq10_pm_ops, 77static SIMPLE_DEV_PM_OPS(samsungq10_pm_ops,
78 samsungq10_suspend, samsungq10_resume); 78 samsungq10_suspend, samsungq10_resume);
79 79
80static int __devinit samsungq10_probe(struct platform_device *pdev) 80static 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
102static int __devexit samsungq10_remove(struct platform_device *pdev) 102static 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
125static struct platform_device *samsungq10_device; 125static struct platform_device *samsungq10_device;
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index daaddec68def..b8ad71f7863f 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -786,28 +786,29 @@ static int sony_nc_int_call(acpi_handle handle, char *name, int *value,
786static int sony_nc_buffer_call(acpi_handle handle, char *name, u64 *value, 786static int sony_nc_buffer_call(acpi_handle handle, char *name, u64 *value,
787 void *buffer, size_t buflen) 787 void *buffer, size_t buflen)
788{ 788{
789 int ret = 0;
789 size_t len = len; 790 size_t len = len;
790 union acpi_object *object = __call_snc_method(handle, name, value); 791 union acpi_object *object = __call_snc_method(handle, name, value);
791 792
792 if (!object) 793 if (!object)
793 return -EINVAL; 794 return -EINVAL;
794 795
795 if (object->type == ACPI_TYPE_BUFFER) 796 if (object->type == ACPI_TYPE_BUFFER) {
796 len = MIN(buflen, object->buffer.length); 797 len = MIN(buflen, object->buffer.length);
798 memcpy(buffer, object->buffer.pointer, len);
797 799
798 else if (object->type == ACPI_TYPE_INTEGER) 800 } else if (object->type == ACPI_TYPE_INTEGER) {
799 len = MIN(buflen, sizeof(object->integer.value)); 801 len = MIN(buflen, sizeof(object->integer.value));
802 memcpy(buffer, &object->integer.value, len);
800 803
801 else { 804 } else {
802 pr_warn("Invalid acpi_object: expected 0x%x got 0x%x\n", 805 pr_warn("Invalid acpi_object: expected 0x%x got 0x%x\n",
803 ACPI_TYPE_BUFFER, object->type); 806 ACPI_TYPE_BUFFER, object->type);
804 kfree(object); 807 ret = -EINVAL;
805 return -EINVAL;
806 } 808 }
807 809
808 memcpy(buffer, object->buffer.pointer, len);
809 kfree(object); 810 kfree(object);
810 return 0; 811 return ret;
811} 812}
812 813
813struct sony_nc_handles { 814struct sony_nc_handles {
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
190static int __devexit tc1100_remove(struct platform_device *device) 190static 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
247static int __init tc1100_init(void) 247static 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
6735static struct snd_kcontrol_new volume_alsa_control_vol __devinitdata = { 6735static 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
6744static struct snd_kcontrol_new volume_alsa_control_mute __devinitdata = { 6744static 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};
151MODULE_DEVICE_TABLE(acpi, toshiba_device_ids); 151MODULE_DEVICE_TABLE(acpi, toshiba_device_ids);
152 152
153static const struct key_entry toshiba_acpi_keymap[] __devinitconst = { 153static 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
878static void __devinit 878static void create_toshiba_proc_entries(struct toshiba_acpi_dev *dev)
879create_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
982static int __devinit toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev) 981static 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
1072static int __devinit toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev) 1071static 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
1157static const char * __devinit find_hci_method(acpi_handle handle) 1156static 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
1173static int __devinit toshiba_acpi_add(struct acpi_device *acpi_dev) 1172static 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
43static int __devinit xo1_rfkill_probe(struct platform_device *pdev) 43static 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
63static int __devexit xo1_rfkill_remove(struct platform_device *pdev) 63static 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
80module_platform_driver(xo1_rfkill_driver); 80module_platform_driver(xo1_rfkill_driver);