]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ep93xx_keypad - fix handling of platform_get_irq() error
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 16 Sep 2020 00:51:05 +0000 (17:51 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 16 Sep 2020 17:42:12 +0000 (10:42 -0700)
commit8fc666c5dea833ee533a1dec9a4e2017a64a27ae
treed21aad3571975e2b2dbb86af87272ccee96f6acf
parented506b1cea842ccc6a9ff6b8eeeeeefe9c1df4e7
Input: ep93xx_keypad - fix handling of platform_get_irq() error

platform_get_irq() returns -ERRNO on error.  In such case comparison
to 0 would pass the check.

Fixes: 38135d3c8932 ("Input: ep93xx_keypad - update driver to new core support")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200828145744.3636-1-krzk@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/ep93xx_keypad.c