summaryrefslogtreecommitdiffstats
path: root/drivers/input/serio/ps2-gpio.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-10-24 01:40:42 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-10-24 19:10:11 +0200
commit6a3eafe490947cb7cd4e6dce1112375f9d9cadfe (patch)
tree5205096992cc9d1dea3bf59bc4f8b5757daa16da /drivers/input/serio/ps2-gpio.c
parentInput: hil_mlc - convert to using timer_setup() (diff)
downloadlinux-6a3eafe490947cb7cd4e6dce1112375f9d9cadfe.tar.xz
linux-6a3eafe490947cb7cd4e6dce1112375f9d9cadfe.zip
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/serio/ps2-gpio.c')
-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);