iio: adc: xilinx: Remove .owner field for driver
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 12:00:00 +0000 (13:00 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 19 Aug 2014 19:25:10 +0000 (20:25 +0100)
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>
drivers/iio/adc/xilinx-xadc-core.c

index 196e269..5d52a31 100644 (file)
@@ -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,
        },
 };