staging:iio:ad7291: add missing .driver_module to struct iio_info
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 4 Jul 2013 13:46:00 +0000 (14:46 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 6 Jul 2013 09:39:26 +0000 (10:39 +0100)
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>
drivers/staging/iio/adc/ad7291.c

index 3fc79e5827500f97a8f843078fc3ff91cf6d9105..a2e61c2fc8d19a319aa1d29e4bfadc7866d6c3f3 100644 (file)
@@ -517,6 +517,7 @@ static const struct iio_info ad7291_info = {
        .read_event_value = &ad7291_read_event_value,
        .write_event_value = &ad7291_write_event_value,
        .event_attrs = &ad7291_event_attribute_group,
+       .driver_module = THIS_MODULE,
 };
 
 static int ad7291_probe(struct i2c_client *client,