]> git.baikalelectronics.ru Git - kernel.git/commit
Input: soc_button_array - silence -ENOENT error on Dell XPS13 9365
authorHans de Goede <hdegoede@redhat.com>
Sun, 20 Aug 2017 16:29:03 +0000 (09:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Aug 2017 16:30:23 +0000 (09:30 -0700)
commitce936a8ce54527b7f8fc47c98a6741f89a9045de
tree8accc485a8004ec6cfe3853dcb02da77f1a120da
parentec135545059119f03edd2df4cc0c52bd4f427229
Input: soc_button_array - silence -ENOENT error on Dell XPS13 9365

The Dell XPS13 9365 has an INT33D2 ACPI node with no GPIOs, causing
the following error in dmesg:

[    7.172275] soc_button_array: probe of INT33D2:00 failed with error -2

This commit silences this, by returning -ENODEV when there are no GPIOs.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=196679
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/soc_button_array.c