Skip to content

Commit 76355c2

Browse files
ukleinekvinodkoul
authored andcommitted
dmaengine: Switch back to struct platform_driver::remove()
After commit 0edb555 ("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: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 0aa4523 commit 76355c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+66
-66
lines changed

drivers/dma/altera-msgdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ static struct platform_driver msgdma_driver = {
954954
.of_match_table = of_match_ptr(msgdma_match),
955955
},
956956
.probe = msgdma_probe,
957-
.remove_new = msgdma_remove,
957+
.remove = msgdma_remove,
958958
};
959959

960960
module_platform_driver(msgdma_driver);

drivers/dma/amd/qdma/qdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ static struct platform_driver amd_qdma_driver = {
11331133
.name = "amd-qdma",
11341134
},
11351135
.probe = amd_qdma_probe,
1136-
.remove_new = amd_qdma_remove,
1136+
.remove = amd_qdma_remove,
11371137
};
11381138

11391139
module_platform_driver(amd_qdma_driver);

drivers/dma/apple-admac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ static struct platform_driver apple_admac_driver = {
950950
.of_match_table = admac_of_match,
951951
},
952952
.probe = admac_probe,
953-
.remove_new = admac_remove,
953+
.remove = admac_remove,
954954
};
955955
module_platform_driver(apple_admac_driver);
956956

drivers/dma/at_hdmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2250,7 +2250,7 @@ static const struct dev_pm_ops __maybe_unused at_dma_dev_pm_ops = {
22502250
};
22512251

22522252
static struct platform_driver at_dma_driver = {
2253-
.remove_new = at_dma_remove,
2253+
.remove = at_dma_remove,
22542254
.shutdown = at_dma_shutdown,
22552255
.id_table = atdma_devtypes,
22562256
.driver = {

drivers/dma/at_xdmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2476,7 +2476,7 @@ MODULE_DEVICE_TABLE(of, atmel_xdmac_dt_ids);
24762476

24772477
static struct platform_driver at_xdmac_driver = {
24782478
.probe = at_xdmac_probe,
2479-
.remove_new = at_xdmac_remove,
2479+
.remove = at_xdmac_remove,
24802480
.driver = {
24812481
.name = "at_xdmac",
24822482
.of_match_table = of_match_ptr(atmel_xdmac_dt_ids),

drivers/dma/bcm-sba-raid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ MODULE_DEVICE_TABLE(of, sba_of_match);
17561756

17571757
static struct platform_driver sba_driver = {
17581758
.probe = sba_probe,
1759-
.remove_new = sba_remove,
1759+
.remove = sba_remove,
17601760
.driver = {
17611761
.name = "bcm-sba-raid",
17621762
.of_match_table = sba_of_match,

drivers/dma/bcm2835-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ static void bcm2835_dma_remove(struct platform_device *pdev)
10291029

10301030
static struct platform_driver bcm2835_dma_driver = {
10311031
.probe = bcm2835_dma_probe,
1032-
.remove_new = bcm2835_dma_remove,
1032+
.remove = bcm2835_dma_remove,
10331033
.driver = {
10341034
.name = "bcm2835-dma",
10351035
.of_match_table = of_match_ptr(bcm2835_dma_of_match),

drivers/dma/bestcomm/bestcomm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ MODULE_DEVICE_TABLE(of, mpc52xx_bcom_of_match);
486486

487487
static struct platform_driver mpc52xx_bcom_of_platform_driver = {
488488
.probe = mpc52xx_bcom_probe,
489-
.remove_new = mpc52xx_bcom_remove,
489+
.remove = mpc52xx_bcom_remove,
490490
.driver = {
491491
.name = DRIVER_NAME,
492492
.of_match_table = mpc52xx_bcom_of_match,

drivers/dma/dma-jz4780.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ MODULE_DEVICE_TABLE(of, jz4780_dma_dt_match);
11221122

11231123
static struct platform_driver jz4780_dma_driver = {
11241124
.probe = jz4780_dma_probe,
1125-
.remove_new = jz4780_dma_remove,
1125+
.remove = jz4780_dma_remove,
11261126
.driver = {
11271127
.name = "jz4780-dma",
11281128
.of_match_table = jz4780_dma_dt_match,

drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ MODULE_DEVICE_TABLE(of, dw_dma_of_id_table);
16761676

16771677
static struct platform_driver dw_driver = {
16781678
.probe = dw_probe,
1679-
.remove_new = dw_remove,
1679+
.remove = dw_remove,
16801680
.driver = {
16811681
.name = KBUILD_MODNAME,
16821682
.of_match_table = dw_dma_of_id_table,

0 commit comments

Comments
 (0)