diff options
Diffstat (limited to 'drivers/platform/x86/msi-wmi.c')
| -rw-r--r-- | drivers/platform/x86/msi-wmi.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/platform/x86/msi-wmi.c b/drivers/platform/x86/msi-wmi.c index 7f77f908bb01..f5f70d4c6913 100644 --- a/drivers/platform/x86/msi-wmi.c +++ b/drivers/platform/x86/msi-wmi.c | |||
| @@ -149,8 +149,13 @@ static void msi_wmi_notify(u32 value, void *context) | |||
| 149 | static struct key_entry *key; | 149 | static struct key_entry *key; |
| 150 | union acpi_object *obj; | 150 | union acpi_object *obj; |
| 151 | ktime_t cur; | 151 | ktime_t cur; |
| 152 | acpi_status status; | ||
| 152 | 153 | ||
| 153 | wmi_get_event_data(value, &response); | 154 | status = wmi_get_event_data(value, &response); |
| 155 | if (status != AE_OK) { | ||
| 156 | printk(KERN_INFO DRV_PFX "bad event status 0x%x\n", status); | ||
| 157 | return; | ||
| 158 | } | ||
| 154 | 159 | ||
| 155 | obj = (union acpi_object *)response.pointer; | 160 | obj = (union acpi_object *)response.pointer; |
| 156 | 161 | ||
| @@ -236,7 +241,7 @@ static int __init msi_wmi_init(void) | |||
| 236 | } | 241 | } |
| 237 | err = wmi_install_notify_handler(MSIWMI_EVENT_GUID, | 242 | err = wmi_install_notify_handler(MSIWMI_EVENT_GUID, |
| 238 | msi_wmi_notify, NULL); | 243 | msi_wmi_notify, NULL); |
| 239 | if (err) | 244 | if (ACPI_FAILURE(err)) |
| 240 | return -EINVAL; | 245 | return -EINVAL; |
| 241 | 246 | ||
| 242 | err = msi_wmi_input_setup(); | 247 | err = msi_wmi_input_setup(); |
