diff options
-rw-r--r-- | drivers/input/misc/soc_button_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/soc_button_array.c b/drivers/input/misc/soc_button_array.c index f600f3a7a3c6..23520df7650f 100644 --- a/drivers/input/misc/soc_button_array.c +++ b/drivers/input/misc/soc_button_array.c | |||
@@ -331,7 +331,7 @@ static int soc_button_probe(struct platform_device *pdev) | |||
331 | error = gpiod_count(dev, NULL); | 331 | error = gpiod_count(dev, NULL); |
332 | if (error < 0) { | 332 | if (error < 0) { |
333 | dev_dbg(dev, "no GPIO attached, ignoring...\n"); | 333 | dev_dbg(dev, "no GPIO attached, ignoring...\n"); |
334 | return error; | 334 | return -ENODEV; |
335 | } | 335 | } |
336 | 336 | ||
337 | priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); | 337 | priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); |