OSDN Git Service

platform/x86: intel_int0002_vgpio: Use device_init_wakeup
authorHans de Goede <hdegoede@redhat.com>
Fri, 23 Aug 2019 17:48:15 +0000 (19:48 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Sep 2019 18:16:09 +0000 (21:16 +0300)
commit0ecee9e3d42231e5641671c5b6b1127d3efff1d4
treee68d7b2056e403642ac4350a7b3240657b7fe903
parent1bd43d0077b9a32a8b8059036471f3fc82dae342
platform/x86: intel_int0002_vgpio: Use device_init_wakeup

Use device_init_wakeup and pm_wakeup_hard_event instead of directly
calling pm_system_wakeup(). This is the preferred way to do this and
this will allow the user to disable wakeup through INT0002 events
through sysfs.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_int0002_vgpio.c