Skip to content

Commit

Permalink
dmaengine: Remove .owner field for driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
KiranPadwal authored and Vinod Koul committed Nov 6, 2014
1 parent 1eacd44 commit cd16628
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion drivers/dma/bcm2835-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/cppi41.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/dma-jz4740.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/iop-adma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/k3dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/mmp_pdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/mmp_tdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/mpc512x_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/nbpfaxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/qcom_bam_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/s3c24xx-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/sh/rcar-audmapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/sh/rcar-hpbdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
};
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/sh/shdma-of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/sh/sudmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/tegra20-apb-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
1 change: 0 additions & 1 deletion drivers/dma/timb_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cd16628

Please sign in to comment.