Commit af160c54 authored by Dmitry Torokhov's avatar Dmitry Torokhov

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: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 6afb6b6e
...@@ -49,8 +49,6 @@ static int ad7879_spi_probe(struct spi_device *spi) ...@@ -49,8 +49,6 @@ static int ad7879_spi_probe(struct spi_device *spi)
if (IS_ERR(ts)) if (IS_ERR(ts))
return PTR_ERR(ts); return PTR_ERR(ts);
spi_set_drvdata(spi, ts);
return 0; return 0;
} }
......
...@@ -680,6 +680,8 @@ struct ad7879 *ad7879_probe(struct device *dev, struct regmap *regmap, ...@@ -680,6 +680,8 @@ struct ad7879 *ad7879_probe(struct device *dev, struct regmap *regmap,
if (err) if (err)
return ERR_PTR(err); return ERR_PTR(err);
dev_set_drvdata(dev, ts);
return 0; return 0;
} }
EXPORT_SYMBOL(ad7879_probe); EXPORT_SYMBOL(ad7879_probe);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment