]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
spi: cadence: Remove .owner field for driver
authorMichal Simek <michal.simek@xilinx.com>
Wed, 13 Aug 2014 11:52:40 +0000 (13:52 +0200)
committerMark Brown <broonie@linaro.org>
Sat, 16 Aug 2014 22:11:32 +0000 (17:11 -0500)
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: Mark Brown <broonie@linaro.org>
drivers/spi/spi-cadence.c

index 562ff83debd9f4a7c8c5ac5e9bd0156d73a3581f..7b811e38c7ad8f4e2d6c92a875a2a99d6fc33991 100644 (file)
@@ -677,7 +677,6 @@ static struct platform_driver cdns_spi_driver = {
        .remove = cdns_spi_remove,
        .driver = {
                .name = CDNS_SPI_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = cdns_spi_of_match,
                .pm = &cdns_spi_dev_pm_ops,
        },