Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd166280 authored by Kiran Padwal's avatar Kiran Padwal Committed by Vinod Koul
Browse files

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: default avatarKiran Padwal <kiran.padwal@smartplayin.com>
[for nvidia]
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 1eacd443
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -692,7 +692,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),
	},
	},
};
};
+0 −1
Original line number Original line Diff line number Diff line
@@ -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),
	},
	},
+0 −1
Original line number Original line Diff line number Diff line
@@ -607,7 +607,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);
+0 −1
Original line number Original line Diff line number Diff line
@@ -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",
	},
	},
};
};
+0 −1
Original line number Original line Diff line number Diff line
@@ -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 = {
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,
	},
	},
Loading