summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2016-11-25 22:36:01 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-11-25 22:39:50 +0300
commit3d5a9437a68a184fbbd0dcf09bf4daf40250505e (patch)
tree62881e1940d7d44f453f649fb7ee38dd0f4360ab /scripts/patch-kernel
parentbe8e7a7ec876d509bc61af64b41b314a142aa262 (diff)
downloadlinux-3d5a9437a68a184fbbd0dcf09bf4daf40250505e.tar.xz
Input: soc_button_array - bail out earlier if gpiod_count is zero
The PNP0C40 device of the Surface 3 doesn't have any GPIO attached to it. Instead of trying to access the GPIO, request the count beforehand and bail out if it is null or if an error is returned. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions