Skip to content

Commit 2d910fe

Browse files
ukleinekfloatious
authored andcommitted
ata: 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/ata/ 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. While touching these files, make indention of the struct initializer consistent in several files. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]>
1 parent f7a870d commit 2d910fe

33 files changed

+41
-41
lines changed

drivers/ata/ahci_brcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static SIMPLE_DEV_PM_OPS(ahci_brcm_pm_ops, brcm_ahci_suspend, brcm_ahci_resume);
571571

572572
static struct platform_driver brcm_ahci_driver = {
573573
.probe = brcm_ahci_probe,
574-
.remove_new = brcm_ahci_remove,
574+
.remove = brcm_ahci_remove,
575575
.shutdown = brcm_ahci_shutdown,
576576
.driver = {
577577
.name = DRV_NAME,

drivers/ata/ahci_ceva.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ MODULE_DEVICE_TABLE(of, ceva_ahci_of_match);
402402

403403
static struct platform_driver ceva_ahci_driver = {
404404
.probe = ceva_ahci_probe,
405-
.remove_new = ata_platform_remove_one,
405+
.remove = ata_platform_remove_one,
406406
.driver = {
407407
.name = DRV_NAME,
408408
.of_match_table = ceva_ahci_of_match,

drivers/ata/ahci_da850.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ MODULE_DEVICE_TABLE(of, ahci_da850_of_match);
238238

239239
static struct platform_driver ahci_da850_driver = {
240240
.probe = ahci_da850_probe,
241-
.remove_new = ata_platform_remove_one,
241+
.remove = ata_platform_remove_one,
242242
.driver = {
243243
.name = DRV_NAME,
244244
.of_match_table = ahci_da850_of_match,

drivers/ata/ahci_dm816.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ MODULE_DEVICE_TABLE(of, ahci_dm816_of_match);
182182

183183
static struct platform_driver ahci_dm816_driver = {
184184
.probe = ahci_dm816_probe,
185-
.remove_new = ata_platform_remove_one,
185+
.remove = ata_platform_remove_one,
186186
.driver = {
187187
.name = AHCI_DM816_DRV_NAME,
188188
.of_match_table = ahci_dm816_of_match,

drivers/ata/ahci_dwc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ MODULE_DEVICE_TABLE(of, ahci_dwc_of_match);
478478

479479
static struct platform_driver ahci_dwc_driver = {
480480
.probe = ahci_dwc_probe,
481-
.remove_new = ata_platform_remove_one,
481+
.remove = ata_platform_remove_one,
482482
.shutdown = ahci_platform_shutdown,
483483
.driver = {
484484
.name = DRV_NAME,

drivers/ata/ahci_imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ static SIMPLE_DEV_PM_OPS(ahci_imx_pm_ops, imx_ahci_suspend, imx_ahci_resume);
10271027

10281028
static struct platform_driver imx_ahci_driver = {
10291029
.probe = imx_ahci_probe,
1030-
.remove_new = ata_platform_remove_one,
1030+
.remove = ata_platform_remove_one,
10311031
.driver = {
10321032
.name = DRV_NAME,
10331033
.of_match_table = imx_ahci_of_match,

drivers/ata/ahci_mtk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ MODULE_DEVICE_TABLE(of, ahci_of_match);
174174

175175
static struct platform_driver mtk_ahci_driver = {
176176
.probe = mtk_ahci_probe,
177-
.remove_new = ata_platform_remove_one,
177+
.remove = ata_platform_remove_one,
178178
.driver = {
179179
.name = DRV_NAME,
180180
.of_match_table = ahci_of_match,

drivers/ata/ahci_mvebu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, ahci_mvebu_of_match);
245245

246246
static struct platform_driver ahci_mvebu_driver = {
247247
.probe = ahci_mvebu_probe,
248-
.remove_new = ata_platform_remove_one,
248+
.remove = ata_platform_remove_one,
249249
.suspend = ahci_mvebu_suspend,
250250
.resume = ahci_mvebu_resume,
251251
.driver = {

drivers/ata/ahci_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ MODULE_DEVICE_TABLE(acpi, ahci_acpi_match);
9696

9797
static struct platform_driver ahci_driver = {
9898
.probe = ahci_probe,
99-
.remove_new = ata_platform_remove_one,
99+
.remove = ata_platform_remove_one,
100100
.shutdown = ahci_platform_shutdown,
101101
.driver = {
102102
.name = DRV_NAME,

drivers/ata/ahci_qoriq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static SIMPLE_DEV_PM_OPS(ahci_qoriq_pm_ops, ahci_platform_suspend,
357357

358358
static struct platform_driver ahci_qoriq_driver = {
359359
.probe = ahci_qoriq_probe,
360-
.remove_new = ata_platform_remove_one,
360+
.remove = ata_platform_remove_one,
361361
.driver = {
362362
.name = DRV_NAME,
363363
.of_match_table = ahci_qoriq_of_match,

0 commit comments

Comments
 (0)