gpio_key: fix request gpio failed issue [1/1]
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Mon, 29 Jul 2019 06:54:57 +0000 (14:54 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 1 Aug 2019 07:07:11 +0000 (00:07 -0700)
commit737031cee3d95aaec28d0e768c59884dfdf63134
tree4030cec745584a0580b94d28d7d178bc8e339c9c
parente2eca11b3d4043f8b6a9a3a293d56f9e3e6d559b
gpio_key: fix request gpio failed issue [1/1]

PD#SWPL-11929

Problem:
request gpio failed but the probe function continued
to execute successfully.

Solution:
add return value judgment.

Verify:
test pass on g12a

Change-Id: Iab04b8440a4ecb340d98baee7b1e0df5692739e7
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
drivers/amlogic/input/keyboard/gpio_keypad.c