diff --git a/drivers/input/misc/ets_fps_mmi/ets_fps.c b/drivers/input/misc/ets_fps_mmi/ets_fps.c index 82ae18146b09..4588541e4a86 100644 --- a/drivers/input/misc/ets_fps_mmi/ets_fps.c +++ b/drivers/input/misc/ets_fps_mmi/ets_fps.c @@ -1060,7 +1060,7 @@ static int etspi_probe(struct platform_device *pdev) wake_lock_init(&ets_wake_lock, WAKE_LOCK_SUSPEND, "ets_wake_lock"); #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 110) || \ - LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 163)) + (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 163) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0))) ets_wake_lock = wakeup_source_register(dev, "ets_wake_lock"); #else ets_wake_lock = wakeup_source_register("ets_wake_lock");