Skip to content

Commit bc93aa7

Browse files
Wei Yongjunjic23
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 2a961d0 commit bc93aa7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/adc/ti_am335x_adc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ static int tiadc_read_raw(struct iio_dev *indio_dev,
134134

135135
static const struct iio_info tiadc_info = {
136136
.read_raw = &tiadc_read_raw,
137+
.driver_module = THIS_MODULE,
137138
};
138139

139140
static int tiadc_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)