aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/hp-wmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index 34b417848e29..c5f95d1e0315 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -527,6 +527,8 @@ static int __init hp_wmi_input_setup(void)
527 int err; 527 int err;
528 528
529 hp_wmi_input_dev = input_allocate_device(); 529 hp_wmi_input_dev = input_allocate_device();
530 if (!hp_wmi_input_dev)
531 return -ENOMEM;
530 532
531 hp_wmi_input_dev->name = "HP WMI hotkeys"; 533 hp_wmi_input_dev->name = "HP WMI hotkeys";
532 hp_wmi_input_dev->phys = "wmi/input0"; 534 hp_wmi_input_dev->phys = "wmi/input0";