Skip to content

Commit ff9e762

Browse files
Michal Simekjic23
authored andcommitted
iio: adc: xilinx: Remove .owner field for driver
There is no need to init .owner field. Based on the patch from Peter Griffin <peter.griffin@linaro.org> "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 <michal.simek@xilinx.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent c83441e commit ff9e762

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/iio/adc/xilinx-xadc-core.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,6 @@ static struct platform_driver xadc_driver = {
13261326
.remove = xadc_remove,
13271327
.driver = {
13281328
.name = "xadc",
1329-
.owner = THIS_MODULE,
13301329
.of_match_table = xadc_of_match_table,
13311330
},
13321331
};

0 commit comments

Comments
 (0)