dmaengine: Remove .owner field for driver
authorKiran Padwal <kiran.padwal@smartplayin.com>
Wed, 24 Sep 2014 06:39:23 +0000 (12:09 +0530)
committerVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 06:24:18 +0000 (11:54 +0530)
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: Kiran Padwal <kiran.padwal@smartplayin.com>
[for nvidia]
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
17 files changed:
drivers/dma/bcm2835-dma.c
drivers/dma/cppi41.c
drivers/dma/dma-jz4740.c
drivers/dma/iop-adma.c
drivers/dma/k3dma.c
drivers/dma/mmp_pdma.c
drivers/dma/mmp_tdma.c
drivers/dma/mpc512x_dma.c
drivers/dma/nbpfaxi.c
drivers/dma/qcom_bam_dma.c
drivers/dma/s3c24xx-dma.c
drivers/dma/sh/rcar-audmapp.c
drivers/dma/sh/rcar-hpbdma.c
drivers/dma/sh/shdma-of.c
drivers/dma/sh/sudmac.c
drivers/dma/tegra20-apb-dma.c
drivers/dma/timb_dma.c

index def66fbbb7f33b8c6c166ca53b8e4e418c31c10b..918b7b3f766f03b19e15792a760eaf544342a182 100644 (file)
@@ -692,7 +692,6 @@ static struct platform_driver bcm2835_dma_driver = {
        .remove = bcm2835_dma_remove,
        .driver = {
                .name = "bcm2835-dma",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(bcm2835_dma_of_match),
        },
 };
index a58eec3b2cad0d0ac5af88a9900dd79d633e8e5a..cf7633f6d474e44650416c81fdcd0a752c342548 100644 (file)
@@ -1088,7 +1088,6 @@ static struct platform_driver cpp41_dma_driver = {
        .remove = cppi41_dma_remove,
        .driver = {
                .name = "cppi41-dma-engine",
-               .owner = THIS_MODULE,
                .pm = &cppi41_pm_ops,
                .of_match_table = of_match_ptr(cppi41_dma_ids),
        },
index 44acda0fb39befdbdc4b401ffcde2c4a58d1ce67..bdeafeefa5f61b994341348cc6c438b7698ed035 100644 (file)
@@ -607,7 +607,6 @@ static struct platform_driver jz4740_dma_driver = {
        .remove = jz4740_dma_remove,
        .driver = {
                .name = "jz4740-dma",
-               .owner = THIS_MODULE,
        },
 };
 module_platform_driver(jz4740_dma_driver);
index c56137bc3868da7cdc43bf38fab53a30ca410430..263d9f6a207e9f5d0ffd6d5059e18c94b067cdf2 100644 (file)
@@ -1557,7 +1557,6 @@ static struct platform_driver iop_adma_driver = {
        .probe          = iop_adma_probe,
        .remove         = iop_adma_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "iop-adma",
        },
 };
index 58219aa649fd656b66c4a05045bf05fb612a86bb..bd8e5f1e826fbc9f429ac87f8adbc6aaad12a1ae 100644 (file)
@@ -821,7 +821,6 @@ static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume);
 static struct platform_driver k3_pdma_driver = {
        .driver         = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &k3_dma_pmops,
                .of_match_table = k3_pdma_dt_ids,
        },
index a1a4db5721b84cb905588cf9320cd8af27da0675..8b8952f35e6c90f5f90e8ca8bc54ba280d272662 100644 (file)
@@ -1098,7 +1098,6 @@ static const struct platform_device_id mmp_pdma_id_table[] = {
 static struct platform_driver mmp_pdma_driver = {
        .driver         = {
                .name   = "mmp-pdma",
-               .owner  = THIS_MODULE,
                .of_match_table = mmp_pdma_dt_ids,
        },
        .id_table       = mmp_pdma_id_table,
index c6bd015b7165a0d9b808ed6a6277b1c48b654425..bfb46957c3dcc8c97a723a29b95cb3fe5e395be9 100644 (file)
@@ -703,7 +703,6 @@ static const struct platform_device_id mmp_tdma_id_table[] = {
 static struct platform_driver mmp_tdma_driver = {
        .driver         = {
                .name   = "mmp-tdma",
-               .owner  = THIS_MODULE,
                .of_match_table = mmp_tdma_dt_ids,
        },
        .id_table       = mmp_tdma_id_table,
index fc08bb3af440cd121bcec456e16c324dfeaba6e3..01bec4023de2d59469bedd6fff0c39b85b5f70aa 100644 (file)
@@ -1092,7 +1092,6 @@ static struct platform_driver mpc_dma_driver = {
        .remove         = mpc_dma_remove,
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = mpc_dma_match,
        },
 };
index 5aeada56a442673d9c07d03ff325cd23c0eeee10..a7a36835a233ef99f7488794d4360e5f6188013a 100644 (file)
@@ -1500,7 +1500,6 @@ static const struct dev_pm_ops nbpf_pm_ops = {
 
 static struct platform_driver nbpf_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "dma-nbpf",
                .of_match_table = nbpf_match,
                .pm = &nbpf_pm_ops,
index 7a4bbb0f80a5677161211c90fca6e53bea7c2129..9d7b5542397c55c88806e05356a3cd0a20fbb31a 100644 (file)
@@ -1115,7 +1115,6 @@ static struct platform_driver bam_dma_driver = {
        .remove = bam_dma_remove,
        .driver = {
                .name = "bam-dma-engine",
-               .owner = THIS_MODULE,
                .of_match_table = bam_of_match,
        },
 };
index 7416572d1e4081866baf61c05411159163a109a9..6941a77521c3d895dbe220a1190d8e64a9acf138 100644 (file)
@@ -1402,7 +1402,6 @@ static int s3c24xx_dma_remove(struct platform_device *pdev)
 static struct platform_driver s3c24xx_dma_driver = {
        .driver         = {
                .name   = "s3c24xx-dma",
-               .owner  = THIS_MODULE,
        },
        .id_table       = s3c24xx_dma_driver_ids,
        .probe          = s3c24xx_dma_probe,
index 3db6be7d7c282fb629cdf9e18a74104a1842b48c..d95bbdd721f40ca859a7b671f7fafccd42b18928 100644 (file)
@@ -365,7 +365,6 @@ static struct platform_driver audmapp_driver = {
        .probe          = audmapp_probe,
        .remove         = audmapp_remove,
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "rcar-audmapp-engine",
                .of_match_table = audmapp_of_match,
        },
index 5ab921865ffedec9af0334cddcc7d7846412a277..20a6f6f2a01868da26f6aeebbc95ddff0c895ae3 100644 (file)
@@ -653,7 +653,6 @@ static struct platform_driver hpb_dmae_driver = {
        .remove         = hpb_dmae_remove,
        .shutdown       = hpb_dmae_shutdown,
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "hpb-dma-engine",
        },
 };
index b4ff9d3e56d18561893f31522de0648273f72ace..f999f9b0d3145b08ac01e7be4a9b5f1eee2b4c88 100644 (file)
@@ -66,7 +66,6 @@ MODULE_DEVICE_TABLE(of, sh_dmae_of_match);
 
 static struct platform_driver shdma_of = {
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = "shdma-of",
                .of_match_table = shdma_of_match,
        },
index 69a5c7b87ee0678c3dbf1ad68ab6aea92a916825..6da2eaa6c294e6018d481f8833ac7c3a379f607e 100644 (file)
@@ -409,7 +409,6 @@ static int sudmac_remove(struct platform_device *pdev)
 
 static struct platform_driver sudmac_driver = {
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = SUDMAC_DRV_NAME,
        },
        .probe          = sudmac_probe,
index 16efa603ff65da05a2cfae6cc0b1b34f4786b525..a6c0b3f68393507a813ed41c3ea4ca2278fc3bcb 100644 (file)
@@ -1597,7 +1597,6 @@ static const struct dev_pm_ops tegra_dma_dev_pm_ops = {
 static struct platform_driver tegra_dmac_driver = {
        .driver = {
                .name   = "tegra-apbdma",
-               .owner = THIS_MODULE,
                .pm     = &tegra_dma_dev_pm_ops,
                .of_match_table = tegra_dma_of_match,
        },
index 4506a7b4f972319c761ff4ee459a0a38bb7139dd..2407ccf1a64b29583165d9fdb0d5638e4dd6f1de 100644 (file)
@@ -783,7 +783,6 @@ static int td_remove(struct platform_device *pdev)
 static struct platform_driver td_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
        },
        .probe  = td_probe,
        .remove = td_remove,
This page took 0.035737 seconds and 5 git commands to generate.