Commit 55f04d7f authored by Wolfram Sang's avatar Wolfram Sang

dma: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent c4456c17
...@@ -694,7 +694,6 @@ static struct platform_driver bcm2835_dma_driver = { ...@@ -694,7 +694,6 @@ static struct platform_driver bcm2835_dma_driver = {
.remove = bcm2835_dma_remove, .remove = bcm2835_dma_remove,
.driver = { .driver = {
.name = "bcm2835-dma", .name = "bcm2835-dma",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(bcm2835_dma_of_match), .of_match_table = of_match_ptr(bcm2835_dma_of_match),
}, },
}; };
......
...@@ -1088,7 +1088,6 @@ static struct platform_driver cpp41_dma_driver = { ...@@ -1088,7 +1088,6 @@ static struct platform_driver cpp41_dma_driver = {
.remove = cppi41_dma_remove, .remove = cppi41_dma_remove,
.driver = { .driver = {
.name = "cppi41-dma-engine", .name = "cppi41-dma-engine",
.owner = THIS_MODULE,
.pm = &cppi41_pm_ops, .pm = &cppi41_pm_ops,
.of_match_table = of_match_ptr(cppi41_dma_ids), .of_match_table = of_match_ptr(cppi41_dma_ids),
}, },
......
...@@ -608,7 +608,6 @@ static struct platform_driver jz4740_dma_driver = { ...@@ -608,7 +608,6 @@ static struct platform_driver jz4740_dma_driver = {
.remove = jz4740_dma_remove, .remove = jz4740_dma_remove,
.driver = { .driver = {
.name = "jz4740-dma", .name = "jz4740-dma",
.owner = THIS_MODULE,
}, },
}; };
module_platform_driver(jz4740_dma_driver); module_platform_driver(jz4740_dma_driver);
......
...@@ -1092,7 +1092,6 @@ static struct platform_driver edma_driver = { ...@@ -1092,7 +1092,6 @@ static struct platform_driver edma_driver = {
.remove = edma_remove, .remove = edma_remove,
.driver = { .driver = {
.name = "edma-dma-engine", .name = "edma-dma-engine",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -963,7 +963,6 @@ MODULE_DEVICE_TABLE(of, fsl_edma_dt_ids); ...@@ -963,7 +963,6 @@ MODULE_DEVICE_TABLE(of, fsl_edma_dt_ids);
static struct platform_driver fsl_edma_driver = { static struct platform_driver fsl_edma_driver = {
.driver = { .driver = {
.name = "fsl-edma", .name = "fsl-edma",
.owner = THIS_MODULE,
.of_match_table = fsl_edma_dt_ids, .of_match_table = fsl_edma_dt_ids,
}, },
.probe = fsl_edma_probe, .probe = fsl_edma_probe,
......
...@@ -1540,7 +1540,6 @@ static const struct of_device_id fsldma_of_ids[] = { ...@@ -1540,7 +1540,6 @@ static const struct of_device_id fsldma_of_ids[] = {
static struct platform_driver fsldma_of_driver = { static struct platform_driver fsldma_of_driver = {
.driver = { .driver = {
.name = "fsl-elo-dma", .name = "fsl-elo-dma",
.owner = THIS_MODULE,
.of_match_table = fsldma_of_ids, .of_match_table = fsldma_of_ids,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &fsldma_pm_ops, .pm = &fsldma_pm_ops,
......
...@@ -1236,7 +1236,6 @@ static int imxdma_remove(struct platform_device *pdev) ...@@ -1236,7 +1236,6 @@ static int imxdma_remove(struct platform_device *pdev)
static struct platform_driver imxdma_driver = { static struct platform_driver imxdma_driver = {
.driver = { .driver = {
.name = "imx-dma", .name = "imx-dma",
.owner = THIS_MODULE,
.of_match_table = imx_dma_of_dev_id, .of_match_table = imx_dma_of_dev_id,
}, },
.id_table = imx_dma_devtype, .id_table = imx_dma_devtype,
......
...@@ -1557,7 +1557,6 @@ static struct platform_driver iop_adma_driver = { ...@@ -1557,7 +1557,6 @@ static struct platform_driver iop_adma_driver = {
.probe = iop_adma_probe, .probe = iop_adma_probe,
.remove = iop_adma_remove, .remove = iop_adma_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "iop-adma", .name = "iop-adma",
}, },
}; };
......
...@@ -822,7 +822,6 @@ static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume); ...@@ -822,7 +822,6 @@ static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume);
static struct platform_driver k3_pdma_driver = { static struct platform_driver k3_pdma_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &k3_dma_pmops, .pm = &k3_dma_pmops,
.of_match_table = k3_pdma_dt_ids, .of_match_table = k3_pdma_dt_ids,
}, },
......
...@@ -1098,7 +1098,6 @@ static const struct platform_device_id mmp_pdma_id_table[] = { ...@@ -1098,7 +1098,6 @@ static const struct platform_device_id mmp_pdma_id_table[] = {
static struct platform_driver mmp_pdma_driver = { static struct platform_driver mmp_pdma_driver = {
.driver = { .driver = {
.name = "mmp-pdma", .name = "mmp-pdma",
.owner = THIS_MODULE,
.of_match_table = mmp_pdma_dt_ids, .of_match_table = mmp_pdma_dt_ids,
}, },
.id_table = mmp_pdma_id_table, .id_table = mmp_pdma_id_table,
......
...@@ -703,7 +703,6 @@ static const struct platform_device_id mmp_tdma_id_table[] = { ...@@ -703,7 +703,6 @@ static const struct platform_device_id mmp_tdma_id_table[] = {
static struct platform_driver mmp_tdma_driver = { static struct platform_driver mmp_tdma_driver = {
.driver = { .driver = {
.name = "mmp-tdma", .name = "mmp-tdma",
.owner = THIS_MODULE,
.of_match_table = mmp_tdma_dt_ids, .of_match_table = mmp_tdma_dt_ids,
}, },
.id_table = mmp_tdma_id_table, .id_table = mmp_tdma_id_table,
......
...@@ -677,7 +677,6 @@ static struct platform_driver moxart_driver = { ...@@ -677,7 +677,6 @@ static struct platform_driver moxart_driver = {
.remove = moxart_remove, .remove = moxart_remove,
.driver = { .driver = {
.name = "moxart-dma-engine", .name = "moxart-dma-engine",
.owner = THIS_MODULE,
.of_match_table = moxart_dma_match, .of_match_table = moxart_dma_match,
}, },
}; };
......
...@@ -1090,7 +1090,6 @@ static struct platform_driver mpc_dma_driver = { ...@@ -1090,7 +1090,6 @@ static struct platform_driver mpc_dma_driver = {
.remove = mpc_dma_remove, .remove = mpc_dma_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = mpc_dma_match, .of_match_table = mpc_dma_match,
}, },
}; };
......
...@@ -1269,7 +1269,6 @@ static struct platform_driver mv_xor_driver = { ...@@ -1269,7 +1269,6 @@ static struct platform_driver mv_xor_driver = {
.probe = mv_xor_probe, .probe = mv_xor_probe,
.remove = mv_xor_remove, .remove = mv_xor_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = MV_XOR_NAME, .name = MV_XOR_NAME,
.of_match_table = of_match_ptr(mv_xor_dt_ids), .of_match_table = of_match_ptr(mv_xor_dt_ids),
}, },
......
...@@ -1500,7 +1500,6 @@ static const struct dev_pm_ops nbpf_pm_ops = { ...@@ -1500,7 +1500,6 @@ static const struct dev_pm_ops nbpf_pm_ops = {
static struct platform_driver nbpf_driver = { static struct platform_driver nbpf_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "dma-nbpf", .name = "dma-nbpf",
.of_match_table = nbpf_match, .of_match_table = nbpf_match,
.pm = &nbpf_pm_ops, .pm = &nbpf_pm_ops,
......
...@@ -1233,7 +1233,6 @@ static struct platform_driver omap_dma_driver = { ...@@ -1233,7 +1233,6 @@ static struct platform_driver omap_dma_driver = {
.remove = omap_dma_remove, .remove = omap_dma_remove,
.driver = { .driver = {
.name = "omap-dma-engine", .name = "omap-dma-engine",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(omap_dma_match), .of_match_table = of_match_ptr(omap_dma_match),
}, },
}; };
......
...@@ -1115,7 +1115,6 @@ static struct platform_driver bam_dma_driver = { ...@@ -1115,7 +1115,6 @@ static struct platform_driver bam_dma_driver = {
.remove = bam_dma_remove, .remove = bam_dma_remove,
.driver = { .driver = {
.name = "bam-dma-engine", .name = "bam-dma-engine",
.owner = THIS_MODULE,
.of_match_table = bam_of_match, .of_match_table = bam_of_match,
}, },
}; };
......
...@@ -1402,7 +1402,6 @@ static int s3c24xx_dma_remove(struct platform_device *pdev) ...@@ -1402,7 +1402,6 @@ static int s3c24xx_dma_remove(struct platform_device *pdev)
static struct platform_driver s3c24xx_dma_driver = { static struct platform_driver s3c24xx_dma_driver = {
.driver = { .driver = {
.name = "s3c24xx-dma", .name = "s3c24xx-dma",
.owner = THIS_MODULE,
}, },
.id_table = s3c24xx_dma_driver_ids, .id_table = s3c24xx_dma_driver_ids,
.probe = s3c24xx_dma_probe, .probe = s3c24xx_dma_probe,
......
...@@ -1064,7 +1064,6 @@ static const struct dev_pm_ops sa11x0_dma_pm_ops = { ...@@ -1064,7 +1064,6 @@ static const struct dev_pm_ops sa11x0_dma_pm_ops = {
static struct platform_driver sa11x0_dma_driver = { static struct platform_driver sa11x0_dma_driver = {
.driver = { .driver = {
.name = "sa11x0-dma", .name = "sa11x0-dma",
.owner = THIS_MODULE,
.pm = &sa11x0_dma_pm_ops, .pm = &sa11x0_dma_pm_ops,
}, },
.probe = sa11x0_dma_probe, .probe = sa11x0_dma_probe,
......
...@@ -933,7 +933,6 @@ static struct platform_driver sirfsoc_dma_driver = { ...@@ -933,7 +933,6 @@ static struct platform_driver sirfsoc_dma_driver = {
.remove = sirfsoc_dma_remove, .remove = sirfsoc_dma_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &sirfsoc_dma_pm_ops, .pm = &sirfsoc_dma_pm_ops,
.of_match_table = sirfsoc_dma_match, .of_match_table = sirfsoc_dma_match,
}, },
......
...@@ -3749,7 +3749,6 @@ static const struct of_device_id d40_match[] = { ...@@ -3749,7 +3749,6 @@ static const struct of_device_id d40_match[] = {
static struct platform_driver d40_driver = { static struct platform_driver d40_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = D40_NAME, .name = D40_NAME,
.pm = &dma40_pm_ops, .pm = &dma40_pm_ops,
.of_match_table = d40_match, .of_match_table = d40_match,
......
...@@ -1597,7 +1597,6 @@ static const struct dev_pm_ops tegra_dma_dev_pm_ops = { ...@@ -1597,7 +1597,6 @@ static const struct dev_pm_ops tegra_dma_dev_pm_ops = {
static struct platform_driver tegra_dmac_driver = { static struct platform_driver tegra_dmac_driver = {
.driver = { .driver = {
.name = "tegra-apbdma", .name = "tegra-apbdma",
.owner = THIS_MODULE,
.pm = &tegra_dma_dev_pm_ops, .pm = &tegra_dma_dev_pm_ops,
.of_match_table = tegra_dma_of_match, .of_match_table = tegra_dma_of_match,
}, },
......
...@@ -783,7 +783,6 @@ static int td_remove(struct platform_device *pdev) ...@@ -783,7 +783,6 @@ static int td_remove(struct platform_device *pdev)
static struct platform_driver td_driver = { static struct platform_driver td_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
.probe = td_probe, .probe = td_probe,
.remove = td_remove, .remove = td_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment