From: Wei Yongjun Date: Sat, 6 Jul 2013 04:20:00 +0000 (+0100) Subject: iio: ti_am335x_adc: add missing .driver_module to struct iio_info X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc93aa7640fe97df8d69b50fdce70da1126e12b3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jonathan Cameron --- 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)