Commit bc93aa76 authored by Wei Yongjun's avatar Wei Yongjun Committed by Jonathan Cameron

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 2a961d09
...@@ -134,6 +134,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev, ...@@ -134,6 +134,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
static const struct iio_info tiadc_info = { static const struct iio_info tiadc_info = {
.read_raw = &tiadc_read_raw, .read_raw = &tiadc_read_raw,
.driver_module = THIS_MODULE,
}; };
static int tiadc_probe(struct platform_device *pdev) static int tiadc_probe(struct platform_device *pdev)
......
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