Skip to content

Commit

Permalink
iio: ti_am335x_adc: add missing .driver_module to struct iio_info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Jonathan Cameron committed Jul 6, 2013
1 parent 2a961d0 commit bc93aa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iio/adc/ti_am335x_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc93aa7

Please sign in to comment.