aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r--drivers/platform/x86/amilo-rfkill.c2
-rw-r--r--drivers/platform/x86/fujitsu-tablet.c10
-rw-r--r--drivers/platform/x86/thinkpad_acpi.c22
3 files changed, 12 insertions, 22 deletions
diff --git a/drivers/platform/x86/amilo-rfkill.c b/drivers/platform/x86/amilo-rfkill.c
index a514bf66fdd7..1deca7f6c4ea 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 __devinitdata amilo_rfkill_id_table[] = { 77static const struct dmi_system_id __devinitconst 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"),
diff --git a/drivers/platform/x86/fujitsu-tablet.c b/drivers/platform/x86/fujitsu-tablet.c
index 7acae3f85f3b..f77484528b1b 100644
--- a/drivers/platform/x86/fujitsu-tablet.c
+++ b/drivers/platform/x86/fujitsu-tablet.c
@@ -52,7 +52,7 @@ struct fujitsu_config {
52 unsigned int quirks; 52 unsigned int quirks;
53}; 53};
54 54
55static unsigned short keymap_Lifebook_Tseries[KEYMAP_LEN] __initconst = { 55static unsigned short keymap_Lifebook_Tseries[KEYMAP_LEN] __initdata = {
56 KEY_RESERVED, 56 KEY_RESERVED,
57 KEY_RESERVED, 57 KEY_RESERVED,
58 KEY_RESERVED, 58 KEY_RESERVED,
@@ -71,7 +71,7 @@ static unsigned short keymap_Lifebook_Tseries[KEYMAP_LEN] __initconst = {
71 KEY_LEFTALT 71 KEY_LEFTALT
72}; 72};
73 73
74static unsigned short keymap_Lifebook_U810[KEYMAP_LEN] __initconst = { 74static unsigned short keymap_Lifebook_U810[KEYMAP_LEN] __initdata = {
75 KEY_RESERVED, 75 KEY_RESERVED,
76 KEY_RESERVED, 76 KEY_RESERVED,
77 KEY_RESERVED, 77 KEY_RESERVED,
@@ -90,7 +90,7 @@ static unsigned short keymap_Lifebook_U810[KEYMAP_LEN] __initconst = {
90 KEY_LEFTALT 90 KEY_LEFTALT
91}; 91};
92 92
93static unsigned short keymap_Stylistic_Tseries[KEYMAP_LEN] __initconst = { 93static unsigned short keymap_Stylistic_Tseries[KEYMAP_LEN] __initdata = {
94 KEY_RESERVED, 94 KEY_RESERVED,
95 KEY_RESERVED, 95 KEY_RESERVED,
96 KEY_RESERVED, 96 KEY_RESERVED,
@@ -109,7 +109,7 @@ static unsigned short keymap_Stylistic_Tseries[KEYMAP_LEN] __initconst = {
109 KEY_LEFTALT 109 KEY_LEFTALT
110}; 110};
111 111
112static unsigned short keymap_Stylistic_ST5xxx[KEYMAP_LEN] __initconst = { 112static unsigned short keymap_Stylistic_ST5xxx[KEYMAP_LEN] __initdata = {
113 KEY_RESERVED, 113 KEY_RESERVED,
114 KEY_RESERVED, 114 KEY_RESERVED,
115 KEY_RESERVED, 115 KEY_RESERVED,
@@ -299,7 +299,7 @@ static int __devinit fujitsu_dmi_stylistic(const struct dmi_system_id *dmi)
299 return 1; 299 return 1;
300} 300}
301 301
302static struct dmi_system_id dmi_ids[] __initconst = { 302static const struct dmi_system_id dmi_ids[] __initconst = {
303 { 303 {
304 .callback = fujitsu_dmi_lifebook, 304 .callback = fujitsu_dmi_lifebook,
305 .ident = "Fujitsu Siemens P/T Series", 305 .ident = "Fujitsu Siemens P/T Series",
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index 52daaa816e53..75dd651664ae 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -522,7 +522,7 @@ static acpi_handle ec_handle;
522 522
523#define TPACPI_HANDLE(object, parent, paths...) \ 523#define TPACPI_HANDLE(object, parent, paths...) \
524 static acpi_handle object##_handle; \ 524 static acpi_handle object##_handle; \
525 static const acpi_handle *object##_parent __initdata = \ 525 static const acpi_handle * const object##_parent __initconst = \
526 &parent##_handle; \ 526 &parent##_handle; \
527 static char *object##_paths[] __initdata = { paths } 527 static char *object##_paths[] __initdata = { paths }
528 528
@@ -7685,25 +7685,15 @@ static int fan_set_speed(int speed)
7685 7685
7686static void fan_watchdog_reset(void) 7686static void fan_watchdog_reset(void)
7687{ 7687{
7688 static int fan_watchdog_active;
7689
7690 if (fan_control_access_mode == TPACPI_FAN_WR_NONE) 7688 if (fan_control_access_mode == TPACPI_FAN_WR_NONE)
7691 return; 7689 return;
7692 7690
7693 if (fan_watchdog_active)
7694 cancel_delayed_work(&fan_watchdog_task);
7695
7696 if (fan_watchdog_maxinterval > 0 && 7691 if (fan_watchdog_maxinterval > 0 &&
7697 tpacpi_lifecycle != TPACPI_LIFE_EXITING) { 7692 tpacpi_lifecycle != TPACPI_LIFE_EXITING)
7698 fan_watchdog_active = 1; 7693 mod_delayed_work(tpacpi_wq, &fan_watchdog_task,
7699 if (!queue_delayed_work(tpacpi_wq, &fan_watchdog_task, 7694 msecs_to_jiffies(fan_watchdog_maxinterval * 1000));
7700 msecs_to_jiffies(fan_watchdog_maxinterval 7695 else
7701 * 1000))) { 7696 cancel_delayed_work(&fan_watchdog_task);
7702 pr_err("failed to queue the fan watchdog, "
7703 "watchdog will not trigger\n");
7704 }
7705 } else
7706 fan_watchdog_active = 0;
7707} 7697}
7708 7698
7709static void fan_watchdog_fire(struct work_struct *ignored) 7699static void fan_watchdog_fire(struct work_struct *ignored)