Input: soc_button_array - Silence -ENOENT error on Dell XPS13 9365
Subsystems (2)
PATCH 1/1 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.
Signed-off-by Hans de Goede <[email protected]>
--- drivers/input/misc/soc_button_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/misc/soc_button_array.c +1 -1
@@ -334,7 +334,7 @@ static int soc_button_probe(struct platform_device *pdev) error =gpiod_count (dev,NULL );if (error <0 ) {dev_dbg (dev,"no GPIO attached, ignoring...\n" ); -return error; +return -ENODEV ; } priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL );
Signature · 1 line
2.13.4
Quoted 9 lines · Hans de Goede
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 -2This commit silences this, by returning
-ENODEVwhen there are no GPIOs.Signed-off-by Hans de Goede <[email protected]>
Applied, thank you.
Quoted 20 lines
--- drivers/input/misc/soc_button_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/misc/soc_button_array.c +1
-1@@ -334,7 +334,7 @@ static int soc_button_probe(struct platform_device *pdev) error =gpiod_count (dev,NULL );if (error <0 ) {dev_dbg (dev,"no GPIO attached, ignoring...\n" ); -return error; +return -ENODEV ; } priv =devm_kzalloc (dev,sizeof (*priv),GFP_KERNEL );Signature · 1 line
2.13.4
Signature · 1 line
Dmitry