Skip to content

Commit d912366

Browse files
jwrdegoededtor
authored andcommitted
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>
1 parent ec66768 commit d912366

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/misc/soc_button_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static int soc_button_probe(struct platform_device *pdev)
331331
error = gpiod_count(dev, NULL);
332332
if (error < 0) {
333333
dev_dbg(dev, "no GPIO attached, ignoring...\n");
334-
return error;
334+
return -ENODEV;
335335
}
336336

337337
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);

0 commit comments

Comments
 (0)