Skip to content

Commit cd16628

Browse files
KiranPadwalVinod Koul
authored andcommitted
dmaengine: 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: Kiran Padwal <kiran.padwal@smartplayin.com> [for nvidia] Acked-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 1eacd44 commit cd16628

17 files changed

+0
-17
lines changed

drivers/dma/bcm2835-dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ static struct platform_driver bcm2835_dma_driver = {
692692
.remove = bcm2835_dma_remove,
693693
.driver = {
694694
.name = "bcm2835-dma",
695-
.owner = THIS_MODULE,
696695
.of_match_table = of_match_ptr(bcm2835_dma_of_match),
697696
},
698697
};

drivers/dma/cppi41.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,6 @@ static struct platform_driver cpp41_dma_driver = {
10881088
.remove = cppi41_dma_remove,
10891089
.driver = {
10901090
.name = "cppi41-dma-engine",
1091-
.owner = THIS_MODULE,
10921091
.pm = &cppi41_pm_ops,
10931092
.of_match_table = of_match_ptr(cppi41_dma_ids),
10941093
},

drivers/dma/dma-jz4740.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,6 @@ static struct platform_driver jz4740_dma_driver = {
607607
.remove = jz4740_dma_remove,
608608
.driver = {
609609
.name = "jz4740-dma",
610-
.owner = THIS_MODULE,
611610
},
612611
};
613612
module_platform_driver(jz4740_dma_driver);

drivers/dma/iop-adma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,6 @@ static struct platform_driver iop_adma_driver = {
15571557
.probe = iop_adma_probe,
15581558
.remove = iop_adma_remove,
15591559
.driver = {
1560-
.owner = THIS_MODULE,
15611560
.name = "iop-adma",
15621561
},
15631562
};

drivers/dma/k3dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume);
821821
static struct platform_driver k3_pdma_driver = {
822822
.driver = {
823823
.name = DRIVER_NAME,
824-
.owner = THIS_MODULE,
825824
.pm = &k3_dma_pmops,
826825
.of_match_table = k3_pdma_dt_ids,
827826
},

drivers/dma/mmp_pdma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,6 @@ static const struct platform_device_id mmp_pdma_id_table[] = {
10981098
static struct platform_driver mmp_pdma_driver = {
10991099
.driver = {
11001100
.name = "mmp-pdma",
1101-
.owner = THIS_MODULE,
11021101
.of_match_table = mmp_pdma_dt_ids,
11031102
},
11041103
.id_table = mmp_pdma_id_table,

drivers/dma/mmp_tdma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ static const struct platform_device_id mmp_tdma_id_table[] = {
703703
static struct platform_driver mmp_tdma_driver = {
704704
.driver = {
705705
.name = "mmp-tdma",
706-
.owner = THIS_MODULE,
707706
.of_match_table = mmp_tdma_dt_ids,
708707
},
709708
.id_table = mmp_tdma_id_table,

drivers/dma/mpc512x_dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,6 @@ static struct platform_driver mpc_dma_driver = {
10921092
.remove = mpc_dma_remove,
10931093
.driver = {
10941094
.name = DRV_NAME,
1095-
.owner = THIS_MODULE,
10961095
.of_match_table = mpc_dma_match,
10971096
},
10981097
};

drivers/dma/nbpfaxi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,6 @@ static const struct dev_pm_ops nbpf_pm_ops = {
15001500

15011501
static struct platform_driver nbpf_driver = {
15021502
.driver = {
1503-
.owner = THIS_MODULE,
15041503
.name = "dma-nbpf",
15051504
.of_match_table = nbpf_match,
15061505
.pm = &nbpf_pm_ops,

drivers/dma/qcom_bam_dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,6 @@ static struct platform_driver bam_dma_driver = {
11151115
.remove = bam_dma_remove,
11161116
.driver = {
11171117
.name = "bam-dma-engine",
1118-
.owner = THIS_MODULE,
11191118
.of_match_table = bam_of_match,
11201119
},
11211120
};

drivers/dma/s3c24xx-dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,6 @@ static int s3c24xx_dma_remove(struct platform_device *pdev)
14021402
static struct platform_driver s3c24xx_dma_driver = {
14031403
.driver = {
14041404
.name = "s3c24xx-dma",
1405-
.owner = THIS_MODULE,
14061405
},
14071406
.id_table = s3c24xx_dma_driver_ids,
14081407
.probe = s3c24xx_dma_probe,

drivers/dma/sh/rcar-audmapp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ static struct platform_driver audmapp_driver = {
365365
.probe = audmapp_probe,
366366
.remove = audmapp_remove,
367367
.driver = {
368-
.owner = THIS_MODULE,
369368
.name = "rcar-audmapp-engine",
370369
.of_match_table = audmapp_of_match,
371370
},

drivers/dma/sh/rcar-hpbdma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,6 @@ static struct platform_driver hpb_dmae_driver = {
653653
.remove = hpb_dmae_remove,
654654
.shutdown = hpb_dmae_shutdown,
655655
.driver = {
656-
.owner = THIS_MODULE,
657656
.name = "hpb-dma-engine",
658657
},
659658
};

drivers/dma/sh/shdma-of.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ MODULE_DEVICE_TABLE(of, sh_dmae_of_match);
6666

6767
static struct platform_driver shdma_of = {
6868
.driver = {
69-
.owner = THIS_MODULE,
7069
.name = "shdma-of",
7170
.of_match_table = shdma_of_match,
7271
},

drivers/dma/sh/sudmac.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ static int sudmac_remove(struct platform_device *pdev)
409409

410410
static struct platform_driver sudmac_driver = {
411411
.driver = {
412-
.owner = THIS_MODULE,
413412
.name = SUDMAC_DRV_NAME,
414413
},
415414
.probe = sudmac_probe,

drivers/dma/tegra20-apb-dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,6 @@ static const struct dev_pm_ops tegra_dma_dev_pm_ops = {
15971597
static struct platform_driver tegra_dmac_driver = {
15981598
.driver = {
15991599
.name = "tegra-apbdma",
1600-
.owner = THIS_MODULE,
16011600
.pm = &tegra_dma_dev_pm_ops,
16021601
.of_match_table = tegra_dma_of_match,
16031602
},

drivers/dma/timb_dma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,6 @@ static int td_remove(struct platform_device *pdev)
783783
static struct platform_driver td_driver = {
784784
.driver = {
785785
.name = DRIVER_NAME,
786-
.owner = THIS_MODULE,
787786
},
788787
.probe = td_probe,
789788
.remove = td_remove,

0 commit comments

Comments
 (0)