summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/ad7879-spi.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-28 22:57:21 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-03-01 18:42:43 +0100
commitaf160c542e40c133b12b18d9dddd4fc555611ef1 (patch)
tree81f647badef896d23588eea196f903a58df4a7a3 /drivers/input/touchscreen/ad7879-spi.c
parentInput: ad7846 - move bindings to touchscreen subdirectory (diff)
downloadlinux-af160c542e40c133b12b18d9dddd4fc555611ef1.tar.xz
linux-af160c542e40c133b12b18d9dddd4fc555611ef1.zip
Input: ad7879 - make sure we set up drvdata
The conversion to devm accidentally removed setting up of I2C client data upon successful probe of the touchscreen. Let's move this setting into the core, so we do not forger about it again. Fixes: 381f688eee3d ("Input: ad7879 - use more devm interfaces") Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/ad7879-spi.c')
-rw-r--r--drivers/input/touchscreen/ad7879-spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/ad7879-spi.c b/drivers/input/touchscreen/ad7879-spi.c
index c73798297b98..59486ccba37d 100644
--- a/drivers/input/touchscreen/ad7879-spi.c
+++ b/drivers/input/touchscreen/ad7879-spi.c
@@ -49,8 +49,6 @@ static int ad7879_spi_probe(struct spi_device *spi)
if (IS_ERR(ts))
return PTR_ERR(ts);
- spi_set_drvdata(spi, ts);
-
return 0;
}