summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-10-23 16:40:42 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-10-24 10:10:11 -0700
commit6a3eafe490947cb7cd4e6dce1112375f9d9cadfe (patch)
tree5205096992cc9d1dea3bf59bc4f8b5757daa16da /drivers/input
parentded489d43f1b210bf3a75f65bfa742fbce0e8bcc (diff)
Input: ps2-gpio - actually abort probe when connected to sleeping GPIOs
We've been missing a goto to the unwind path... Acked-by: Danilo Krummrich <danilokrummrich@dk-develop.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/serio/ps2-gpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/serio/ps2-gpio.c b/drivers/input/serio/ps2-gpio.c
index b50e3817f3c4..c62cceb97bb1 100644
--- a/drivers/input/serio/ps2-gpio.c
+++ b/drivers/input/serio/ps2-gpio.c
@@ -366,6 +366,7 @@ static int ps2_gpio_probe(struct platform_device *pdev)
gpiod_cansleep(drvdata->gpio_clk)) {
dev_err(dev, "GPIO data or clk are connected via slow bus\n");
error = -EINVAL;
+ goto err_free_serio;
}
drvdata->irq = platform_get_irq(pdev, 0);