]> git.baikalelectronics.ru Git - kernel.git/commit
hp-wmi: check that an input device exists in resume handler
authorFrans Pop <elendil@planet.nl>
Thu, 30 Jul 2009 21:16:05 +0000 (17:16 -0400)
committerLen Brown <len.brown@intel.com>
Thu, 30 Jul 2009 21:16:05 +0000 (17:16 -0400)
commit3b0b8189d5d607e885bca69a0dc784f4077b6cc7
tree013f790c39736d80727751be13e0f5cf0358cf02
parent8cb0e08ea6a50db8f60386cef80c176481efb6c2
hp-wmi: check that an input device exists in resume handler

Some systems may not support input events, or registering the input
handler may have failed. So check that an input device exists before
trying to set the docking and tablet mode state during resume.

Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=13865
Reported-and-tested-by: Cédric Godin <cedric@belbone.be>
Signed-off-by: Frans Pop <elendil@planet.nl>
Acked-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/hp-wmi.c