From: Michal Simek Date: Wed, 13 Aug 2014 12:00:00 +0000 (+0100) Subject: iio: adc: xilinx: Remove .owner field for driver X-Git-Tag: v5.15~17125^2~1187^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff9e7621586ff8b86a18cfbb7c437c277ebc1970;p=platform%2Fkernel%2Flinux-starfive.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 196e269e..5d52a31 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, }, };