summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-07-06 06:20:00 +0200
committerJonathan Cameron <jic23@kernel.org>2013-07-06 11:37:21 +0200
commitbc93aa7640fe97df8d69b50fdce70da1126e12b3 (patch)
tree84f93984f661595739967d517c0242bf73da3f30 /drivers
parentiio: mxs-lradc: Remove useless check in read_raw (diff)
downloadlinux-bc93aa7640fe97df8d69b50fdce70da1126e12b3.tar.xz
linux-bc93aa7640fe97df8d69b50fdce70da1126e12b3.zip
iio: ti_am335x_adc: add missing .driver_module to struct iio_info
Add missing .driver_module of struct iio_info. This prevents the module from being removed from underneath its users. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/adc/ti_am335x_adc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c
index 5f9a7e7d3135..985f58873d03 100644
--- a/drivers/iio/adc/ti_am335x_adc.c
+++ b/drivers/iio/adc/ti_am335x_adc.c
@@ -134,6 +134,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
static const struct iio_info tiadc_info = {
.read_raw = &tiadc_read_raw,
+ .driver_module = THIS_MODULE,
};
static int tiadc_probe(struct platform_device *pdev)