dma: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:28 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:28 +0000 (16:20 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
23 files changed:
drivers/dma/bcm2835-dma.c
drivers/dma/cppi41.c
drivers/dma/dma-jz4740.c
drivers/dma/edma.c
drivers/dma/fsl-edma.c
drivers/dma/fsldma.c
drivers/dma/imx-dma.c
drivers/dma/iop-adma.c
drivers/dma/k3dma.c
drivers/dma/mmp_pdma.c
drivers/dma/mmp_tdma.c
drivers/dma/moxart-dma.c
drivers/dma/mpc512x_dma.c
drivers/dma/mv_xor.c
drivers/dma/nbpfaxi.c
drivers/dma/omap-dma.c
drivers/dma/qcom_bam_dma.c
drivers/dma/s3c24xx-dma.c
drivers/dma/sa11x0-dma.c
drivers/dma/sirf-dma.c
drivers/dma/ste_dma40.c
drivers/dma/tegra20-apb-dma.c
drivers/dma/timb_dma.c

index 6800797..815dbdf 100644 (file)
@@ -694,7 +694,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 a58eec3..cf7633f 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 ae2ab14..8605ed1 100644 (file)
@@ -608,7 +608,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 123f578..fd45597 100644 (file)
@@ -1092,7 +1092,6 @@ static struct platform_driver edma_driver = {
        .remove         = edma_remove,
        .driver = {
                .name = "edma-dma-engine",
-               .owner = THIS_MODULE,
        },
 };
 
index 3c5711d..a38e5d2 100644 (file)
@@ -963,7 +963,6 @@ MODULE_DEVICE_TABLE(of, fsl_edma_dt_ids);
 static struct platform_driver fsl_edma_driver = {
        .driver         = {
                .name   = "fsl-edma",
-               .owner  = THIS_MODULE,
                .of_match_table = fsl_edma_dt_ids,
        },
        .probe          = fsl_edma_probe,
index 994bcb2..de3da03 100644 (file)
@@ -1540,7 +1540,6 @@ static const struct of_device_id fsldma_of_ids[] = {
 static struct platform_driver fsldma_of_driver = {
        .driver = {
                .name = "fsl-elo-dma",
-               .owner = THIS_MODULE,
                .of_match_table = fsldma_of_ids,
 #ifdef CONFIG_PM
                .pm = &fsldma_pm_ops,
index 9d2c9e7..10bbc0a 100644 (file)
@@ -1236,7 +1236,6 @@ static int imxdma_remove(struct platform_device *pdev)
 static struct platform_driver imxdma_driver = {
        .driver         = {
                .name   = "imx-dma",
-               .owner  = THIS_MODULE,
                .of_match_table = imx_dma_of_dev_id,
        },
        .id_table       = imx_dma_devtype,
index c56137b..263d9f6 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 a1f911a..9349021 100644 (file)
@@ -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 = {
        .driver         = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &k3_dma_pmops,
                .of_match_table = k3_pdma_dt_ids,
        },
index a1a4db5..8b8952f 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 c6bd015..bfb4695 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 3258e48..53032ba 100644 (file)
@@ -677,7 +677,6 @@ static struct platform_driver moxart_driver = {
        .remove = moxart_remove,
        .driver = {
                .name           = "moxart-dma-engine",
-               .owner          = THIS_MODULE,
                .of_match_table = moxart_dma_match,
        },
 };
index 881db2b..586d52c 100644 (file)
@@ -1090,7 +1090,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 a63837c..d7ac558 100644 (file)
@@ -1269,7 +1269,6 @@ static struct platform_driver mv_xor_driver = {
        .probe          = mv_xor_probe,
        .remove         = mv_xor_remove,
        .driver         = {
-               .owner          = THIS_MODULE,
                .name           = MV_XOR_NAME,
                .of_match_table = of_match_ptr(mv_xor_dt_ids),
        },
index 5aeada5..a7a3683 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 bbea824..7ff73a2 100644 (file)
@@ -1233,7 +1233,6 @@ static struct platform_driver omap_dma_driver = {
        .remove = omap_dma_remove,
        .driver = {
                .name = "omap-dma-engine",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(omap_dma_match),
        },
 };
index 7a4bbb0..9d7b554 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 7416572..6941a77 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 4b0ef04..94f2be3 100644 (file)
@@ -1064,7 +1064,6 @@ static const struct dev_pm_ops sa11x0_dma_pm_ops = {
 static struct platform_driver sa11x0_dma_driver = {
        .driver = {
                .name   = "sa11x0-dma",
-               .owner  = THIS_MODULE,
                .pm     = &sa11x0_dma_pm_ops,
        },
        .probe          = sa11x0_dma_probe,
index aac03ab..981880f 100644 (file)
@@ -933,7 +933,6 @@ static struct platform_driver sirfsoc_dma_driver = {
        .remove         = sirfsoc_dma_remove,
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .pm = &sirfsoc_dma_pm_ops,
                .of_match_table = sirfsoc_dma_match,
        },
index 5fe5933..7de218c 100644 (file)
@@ -3749,7 +3749,6 @@ static const struct of_device_id d40_match[] = {
 
 static struct platform_driver d40_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name  = D40_NAME,
                .pm = &dma40_pm_ops,
                .of_match_table = d40_match,
index 16efa60..a6c0b3f 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 4506a7b..2407ccf 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,