]> git.baikalelectronics.ru Git - kernel.git/commit
Input: omap4-keypad - fix pm_runtime_get_sync() error checking
authorMiaoqian Lin <linmq006@gmail.com>
Sun, 17 Apr 2022 20:03:31 +0000 (13:03 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 17 Apr 2022 20:13:34 +0000 (13:13 -0700)
commit6ae85931778067dae39315d2a27514e4146f51aa
tree9ad7e48a5141390ccebe37e75717a3715294a06f
parent177a4a92f6a9823e39facbf92f7582dff160ff80
Input: omap4-keypad - fix pm_runtime_get_sync() error checking

If the device is already in a runtime PM enabled state
pm_runtime_get_sync() will return 1, so a test for negative
value should be used to check for errors.

Fixes: 66e061a498b9 ("Input: omap-keypad - dynamically handle register offsets")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220412070131.19848-1-linmq006@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/omap4-keypad.c