From: Michal Simek Date: Wed, 13 Aug 2014 12:00:00 +0000 (+0100) Subject: iio: adc: xilinx: Remove .owner field for driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ff9e7621586ff8b86a18cfbb7c437c277ebc1970;p=openwrt%2Fstaging%2Fblogic.git iio: adc: xilinx: Remove .owner field for driver There is no need to init .owner field. Based on the patch from Peter Griffin "mmc: remove .owner field for drivers using module_platform_driver" This patch removes the superflous .owner field for drivers which use the module_platform_driver API, as this is overriden in platform_driver_register anyway." Signed-off-by: Michal Simek Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c index 196e269e48d1..5d52a3106fac 100644 --- a/drivers/iio/adc/xilinx-xadc-core.c +++ b/drivers/iio/adc/xilinx-xadc-core.c @@ -1326,7 +1326,6 @@ static struct platform_driver xadc_driver = { .remove = xadc_remove, .driver = { .name = "xadc", - .owner = THIS_MODULE, .of_match_table = xadc_of_match_table, }, };