Commit 76355c25 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Vinod Koul
Browse files

dmaengine: Switch back to struct platform_driver::remove()



After commit 0edb555a ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/dma after the previous
conversion commits apart from the wireless drivers to use .remove(),
with the eventual goal to drop struct platform_driver::remove_new(). As
.remove() and .remove_new() have the same prototypes, conversion is done
by just changing the structure member name in the driver initializer.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20241004062227.187726-2-u.kleine-koenig@baylibre.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 0aa4523c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -954,7 +954,7 @@ static struct platform_driver msgdma_driver = {
		.of_match_table = of_match_ptr(msgdma_match),
	},
	.probe = msgdma_probe,
	.remove_new = msgdma_remove,
	.remove = msgdma_remove,
};

module_platform_driver(msgdma_driver);
+1 −1
Original line number Diff line number Diff line
@@ -1133,7 +1133,7 @@ static struct platform_driver amd_qdma_driver = {
		.name = "amd-qdma",
	},
	.probe		= amd_qdma_probe,
	.remove_new	= amd_qdma_remove,
	.remove		= amd_qdma_remove,
};

module_platform_driver(amd_qdma_driver);
+1 −1
Original line number Diff line number Diff line
@@ -950,7 +950,7 @@ static struct platform_driver apple_admac_driver = {
		.of_match_table = admac_of_match,
	},
	.probe = admac_probe,
	.remove_new = admac_remove,
	.remove = admac_remove,
};
module_platform_driver(apple_admac_driver);

+1 −1
Original line number Diff line number Diff line
@@ -2250,7 +2250,7 @@ static const struct dev_pm_ops __maybe_unused at_dma_dev_pm_ops = {
};

static struct platform_driver at_dma_driver = {
	.remove_new	= at_dma_remove,
	.remove		= at_dma_remove,
	.shutdown	= at_dma_shutdown,
	.id_table	= atdma_devtypes,
	.driver = {
+1 −1
Original line number Diff line number Diff line
@@ -2476,7 +2476,7 @@ MODULE_DEVICE_TABLE(of, atmel_xdmac_dt_ids);

static struct platform_driver at_xdmac_driver = {
	.probe		= at_xdmac_probe,
	.remove_new	= at_xdmac_remove,
	.remove		= at_xdmac_remove,
	.driver = {
		.name		= "at_xdmac",
		.of_match_table	= of_match_ptr(atmel_xdmac_dt_ids),
Loading