mtd: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 7 Oct 2024 20:58:07 +0000 (22:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 21 Oct 2024 09:58:07 +0000 (11:58 +0200)
After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/mtd 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 <u.kleine-koenig@baylibre.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20241007205803.444994-10-u.kleine-koenig@baylibre.com
72 files changed:
drivers/mtd/devices/bcm47xxsflash.c
drivers/mtd/devices/docg3.c
drivers/mtd/devices/phram.c
drivers/mtd/devices/powernv_flash.c
drivers/mtd/devices/spear_smi.c
drivers/mtd/devices/st_spi_fsm.c
drivers/mtd/hyperbus/hbmc-am654.c
drivers/mtd/hyperbus/rpc-if.c
drivers/mtd/lpddr/lpddr2_nvm.c
drivers/mtd/maps/lantiq-flash.c
drivers/mtd/maps/physmap-core.c
drivers/mtd/maps/plat-ram.c
drivers/mtd/maps/pxa2xx-flash.c
drivers/mtd/maps/sa1100-flash.c
drivers/mtd/maps/sun_uflash.c
drivers/mtd/nand/ecc-mxic.c
drivers/mtd/nand/onenand/generic.c
drivers/mtd/nand/onenand/onenand_omap2.c
drivers/mtd/nand/onenand/onenand_samsung.c
drivers/mtd/nand/raw/ams-delta.c
drivers/mtd/nand/raw/arasan-nand-controller.c
drivers/mtd/nand/raw/atmel/nand-controller.c
drivers/mtd/nand/raw/au1550nd.c
drivers/mtd/nand/raw/bcm47xxnflash/main.c
drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c
drivers/mtd/nand/raw/brcmnand/bcma_nand.c
drivers/mtd/nand/raw/brcmnand/bcmbca_nand.c
drivers/mtd/nand/raw/brcmnand/brcmstb_nand.c
drivers/mtd/nand/raw/brcmnand/iproc_nand.c
drivers/mtd/nand/raw/cadence-nand-controller.c
drivers/mtd/nand/raw/davinci_nand.c
drivers/mtd/nand/raw/denali_dt.c
drivers/mtd/nand/raw/fsl_elbc_nand.c
drivers/mtd/nand/raw/fsl_ifc_nand.c
drivers/mtd/nand/raw/fsl_upm.c
drivers/mtd/nand/raw/fsmc_nand.c
drivers/mtd/nand/raw/gpio.c
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
drivers/mtd/nand/raw/hisi504_nand.c
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
drivers/mtd/nand/raw/intel-nand-controller.c
drivers/mtd/nand/raw/lpc32xx_mlc.c
drivers/mtd/nand/raw/lpc32xx_slc.c
drivers/mtd/nand/raw/marvell_nand.c
drivers/mtd/nand/raw/meson_nand.c
drivers/mtd/nand/raw/mpc5121_nfc.c
drivers/mtd/nand/raw/mtk_nand.c
drivers/mtd/nand/raw/mxc_nand.c
drivers/mtd/nand/raw/mxic_nand.c
drivers/mtd/nand/raw/ndfc.c
drivers/mtd/nand/raw/omap2.c
drivers/mtd/nand/raw/omap_elm.c
drivers/mtd/nand/raw/orion_nand.c
drivers/mtd/nand/raw/pasemi_nand.c
drivers/mtd/nand/raw/pl35x-nand-controller.c
drivers/mtd/nand/raw/plat_nand.c
drivers/mtd/nand/raw/qcom_nandc.c
drivers/mtd/nand/raw/renesas-nand-controller.c
drivers/mtd/nand/raw/rockchip-nand-controller.c
drivers/mtd/nand/raw/s3c2410.c
drivers/mtd/nand/raw/sh_flctl.c
drivers/mtd/nand/raw/sharpsl.c
drivers/mtd/nand/raw/socrates_nand.c
drivers/mtd/nand/raw/stm32_fmc2_nand.c
drivers/mtd/nand/raw/sunxi_nand.c
drivers/mtd/nand/raw/technologic-nand-controller.c
drivers/mtd/nand/raw/tegra_nand.c
drivers/mtd/nand/raw/txx9ndfmc.c
drivers/mtd/nand/raw/vf610_nfc.c
drivers/mtd/nand/raw/xway_nand.c
drivers/mtd/spi-nor/controllers/hisi-sfc.c
drivers/mtd/spi-nor/controllers/nxp-spifi.c

index 74f559b..2edc467 100644 (file)
@@ -367,7 +367,7 @@ static void bcm47xxsflash_bcma_remove(struct platform_device *pdev)
 
 static struct platform_driver bcma_sflash_driver = {
        .probe  = bcm47xxsflash_bcma_probe,
-       .remove_new = bcm47xxsflash_bcma_remove,
+       .remove = bcm47xxsflash_bcma_remove,
        .driver = {
                .name = "bcma_sflash",
        },
index a2b643a..c93769c 100644 (file)
@@ -2075,7 +2075,7 @@ static struct platform_driver g3_driver = {
        },
        .suspend        = docg3_suspend,
        .resume         = docg3_resume,
-       .remove_new     = docg3_release,
+       .remove         = docg3_release,
 };
 
 module_platform_driver_probe(g3_driver, docg3_probe);
index 1bf192f..f756c60 100644 (file)
@@ -399,7 +399,7 @@ static void phram_remove(struct platform_device *pdev)
 
 static struct platform_driver phram_driver = {
        .probe          = phram_probe,
-       .remove_new     = phram_remove,
+       .remove         = phram_remove,
        .driver         = {
                .name           = "phram",
                .of_match_table = of_match_ptr(phram_of_match),
index 10cd1d9..a12427d 100644 (file)
@@ -286,7 +286,7 @@ static struct platform_driver powernv_flash_driver = {
                .name           = "powernv_flash",
                .of_match_table = powernv_flash_match,
        },
-       .remove_new     = powernv_flash_release,
+       .remove         = powernv_flash_release,
        .probe          = powernv_flash_probe,
 };
 
index 1574296..f02f96b 100644 (file)
@@ -1093,7 +1093,7 @@ static struct platform_driver spear_smi_driver = {
                .pm = &spear_smi_pm_ops,
        },
        .probe = spear_smi_probe,
-       .remove_new = spear_smi_remove,
+       .remove = spear_smi_remove,
 };
 module_platform_driver(spear_smi_driver);
 
index 3268de5..dba584f 100644 (file)
@@ -2132,7 +2132,7 @@ MODULE_DEVICE_TABLE(of, stfsm_match);
 
 static struct platform_driver stfsm_driver = {
        .probe          = stfsm_probe,
-       .remove_new     = stfsm_remove,
+       .remove         = stfsm_remove,
        .driver         = {
                .name   = "st-spi-fsm",
                .of_match_table = stfsm_match,
index dbe3eb3..217f4e6 100644 (file)
@@ -254,7 +254,7 @@ MODULE_DEVICE_TABLE(of, am654_hbmc_dt_ids);
 
 static struct platform_driver am654_hbmc_platform_driver = {
        .probe = am654_hbmc_probe,
-       .remove_new = am654_hbmc_remove,
+       .remove = am654_hbmc_remove,
        .driver = {
                .name = "hbmc-am654",
                .of_match_table = am654_hbmc_dt_ids,
index e7a28f3..f448e23 100644 (file)
@@ -171,7 +171,7 @@ MODULE_DEVICE_TABLE(platform, rpc_if_hyperflash_id_table);
 
 static struct platform_driver rpcif_platform_driver = {
        .probe  = rpcif_hb_probe,
-       .remove_new = rpcif_hb_remove,
+       .remove = rpcif_hb_remove,
        .id_table = rpc_if_hyperflash_id_table,
        .driver = {
                .name   = "rpc-if-hyperflash",
index 9169e11..565b71f 100644 (file)
@@ -487,7 +487,7 @@ static struct platform_driver lpddr2_nvm_drv = {
                .name   = "lpddr2_nvm",
        },
        .probe          = lpddr2_nvm_probe,
-       .remove_new     = lpddr2_nvm_remove,
+       .remove         = lpddr2_nvm_remove,
 };
 
 module_platform_driver(lpddr2_nvm_drv);
index 124b13c..80d467e 100644 (file)
@@ -184,7 +184,7 @@ MODULE_DEVICE_TABLE(of, ltq_mtd_match);
 
 static struct platform_driver ltq_mtd_driver = {
        .probe = ltq_mtd_probe,
-       .remove_new = ltq_mtd_remove,
+       .remove = ltq_mtd_remove,
        .driver = {
                .name = "ltq-nor",
                .of_match_table = ltq_mtd_match,
index 96eb2e7..2bd7a1a 100644 (file)
@@ -621,7 +621,7 @@ static void physmap_flash_shutdown(struct platform_device *dev)
 
 static struct platform_driver physmap_flash_driver = {
        .probe          = physmap_flash_probe,
-       .remove_new     = physmap_flash_remove,
+       .remove         = physmap_flash_remove,
        .shutdown       = physmap_flash_shutdown,
        .driver         = {
                .name   = "physmap-flash",
index 8b736f0..1c541ea 100644 (file)
@@ -205,7 +205,7 @@ MODULE_ALIAS("platform:mtd-ram");
 
 static struct platform_driver platram_driver = {
        .probe          = platram_probe,
-       .remove_new     = platram_remove,
+       .remove         = platram_remove,
        .driver         = {
                .name   = "mtd-ram",
        },
index f2a2d47..f27c25d 100644 (file)
@@ -128,7 +128,7 @@ static struct platform_driver pxa2xx_flash_driver = {
                .name           = "pxa2xx-flash",
        },
        .probe          = pxa2xx_flash_probe,
-       .remove_new     = pxa2xx_flash_remove,
+       .remove         = pxa2xx_flash_remove,
        .shutdown       = pxa2xx_flash_shutdown,
 };
 
index ac8a0a1..6a54a84 100644 (file)
@@ -293,7 +293,7 @@ static void sa1100_mtd_remove(struct platform_device *pdev)
 
 static struct platform_driver sa1100_mtd_driver = {
        .probe          = sa1100_mtd_probe,
-       .remove_new     = sa1100_mtd_remove,
+       .remove         = sa1100_mtd_remove,
        .driver         = {
                .name   = "sa1100-mtd",
        },
index b69dade..ea3aa02 100644 (file)
@@ -149,7 +149,7 @@ static struct platform_driver uflash_driver = {
                .of_match_table = uflash_match,
        },
        .probe          = uflash_probe,
-       .remove_new     = uflash_remove,
+       .remove         = uflash_remove,
 };
 
 module_platform_driver(uflash_driver);
index 47e1094..9f79c2d 100644 (file)
@@ -869,7 +869,7 @@ static struct platform_driver mxic_ecc_driver = {
                .of_match_table = mxic_ecc_of_ids,
        },
        .probe = mxic_ecc_probe,
-       .remove_new = mxic_ecc_remove,
+       .remove = mxic_ecc_remove,
 };
 module_platform_driver(mxic_ecc_driver);
 
index 4e7de48..4e6fd1c 100644 (file)
@@ -104,7 +104,7 @@ static struct platform_driver generic_onenand_driver = {
                .name           = DRIVER_NAME,
        },
        .probe          = generic_onenand_probe,
-       .remove_new     = generic_onenand_remove,
+       .remove         = generic_onenand_remove,
 };
 
 module_platform_driver(generic_onenand_driver);
index a12f8f3..f9a386b 100644 (file)
@@ -593,7 +593,7 @@ MODULE_DEVICE_TABLE(of, omap2_onenand_id_table);
 
 static struct platform_driver omap2_onenand_driver = {
        .probe          = omap2_onenand_probe,
-       .remove_new     = omap2_onenand_remove,
+       .remove         = omap2_onenand_remove,
        .shutdown       = omap2_onenand_shutdown,
        .driver         = {
                .name   = DRIVER_NAME,
index fd6890a..f37a613 100644 (file)
@@ -991,7 +991,7 @@ static struct platform_driver s3c_onenand_driver = {
        },
        .id_table       = s3c_onenand_driver_ids,
        .probe          = s3c_onenand_probe,
-       .remove_new     = s3c_onenand_remove,
+       .remove         = s3c_onenand_remove,
 };
 
 module_platform_driver(s3c_onenand_driver);
index 919816a..fb2b7db 100644 (file)
@@ -432,7 +432,7 @@ MODULE_DEVICE_TABLE(platform, gpio_nand_plat_id_table);
 
 static struct platform_driver gpio_nand_driver = {
        .probe          = gpio_nand_probe,
-       .remove_new     = gpio_nand_remove,
+       .remove         = gpio_nand_remove,
        .id_table       = gpio_nand_plat_id_table,
        .driver         = {
                .name   = "ams-delta-nand",
index 5436ec4..db42aa0 100644 (file)
@@ -1500,7 +1500,7 @@ static struct platform_driver anfc_driver = {
                .of_match_table = anfc_ids,
        },
        .probe = anfc_probe,
-       .remove_new = anfc_remove,
+       .remove = anfc_remove,
 };
 module_platform_driver(anfc_driver);
 
index f9ccfd0..dedcca8 100644 (file)
@@ -2663,7 +2663,7 @@ static struct platform_driver atmel_nand_controller_driver = {
                .pm = &atmel_nand_controller_pm_ops,
        },
        .probe = atmel_nand_controller_probe,
-       .remove_new = atmel_nand_controller_remove,
+       .remove = atmel_nand_controller_remove,
 };
 module_platform_driver(atmel_nand_controller_driver);
 
index 063a5e0..04d6472 100644 (file)
@@ -357,7 +357,7 @@ static struct platform_driver au1550nd_driver = {
                .name   = "au1550-nand",
        },
        .probe          = au1550nd_probe,
-       .remove_new     = au1550nd_remove,
+       .remove         = au1550nd_remove,
 };
 
 module_platform_driver(au1550nd_driver);
index ebcf508..4d4e185 100644 (file)
@@ -70,7 +70,7 @@ static void bcm47xxnflash_remove(struct platform_device *pdev)
 
 static struct platform_driver bcm47xxnflash_driver = {
        .probe  = bcm47xxnflash_probe,
-       .remove_new = bcm47xxnflash_remove,
+       .remove = bcm47xxnflash_remove,
        .driver = {
                .name = "bcma_nflash",
        },
index 05b7b65..a06cd87 100644 (file)
@@ -117,7 +117,7 @@ MODULE_DEVICE_TABLE(of, bcm6368_nand_of_match);
 
 static struct platform_driver bcm6368_nand_driver = {
        .probe                  = bcm6368_nand_probe,
-       .remove_new             = brcmnand_remove,
+       .remove                 = brcmnand_remove,
        .driver = {
                .name           = "bcm6368_nand",
                .pm             = &brcmnand_pm_ops,
index 4e7e435..dd27977 100644 (file)
@@ -119,7 +119,7 @@ static int brcmnand_bcma_nand_probe(struct platform_device *pdev)
 
 static struct platform_driver brcmnand_bcma_nand_driver = {
        .probe                  = brcmnand_bcma_nand_probe,
-       .remove_new             = brcmnand_remove,
+       .remove                 = brcmnand_remove,
        .driver = {
                .name           = "bcma_brcmnand",
                .pm             = &brcmnand_pm_ops,
index ea53485..c31d7f3 100644 (file)
@@ -112,7 +112,7 @@ MODULE_DEVICE_TABLE(of, bcmbca_nand_of_match);
 
 static struct platform_driver bcmbca_nand_driver = {
        .probe                  = bcmbca_nand_probe,
-       .remove_new             = brcmnand_remove,
+       .remove                 = brcmnand_remove,
        .driver = {
                .name           = "bcmbca_nand",
                .pm             = &brcmnand_pm_ops,
index 558f083..950923d 100644 (file)
@@ -23,7 +23,7 @@ static int brcmstb_nand_probe(struct platform_device *pdev)
 
 static struct platform_driver brcmstb_nand_driver = {
        .probe                  = brcmstb_nand_probe,
-       .remove_new             = brcmnand_remove,
+       .remove                 = brcmnand_remove,
        .driver = {
                .name           = "brcmstb_nand",
                .pm             = &brcmnand_pm_ops,
index bf46c8b..089c70f 100644 (file)
@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(of, iproc_nand_of_match);
 
 static struct platform_driver iproc_nand_driver = {
        .probe                  = iproc_nand_probe,
-       .remove_new             = brcmnand_remove,
+       .remove                 = brcmnand_remove,
        .driver = {
                .name           = "iproc_nand",
                .pm             = &brcmnand_pm_ops,
index 3bc89b3..a6a1657 100644 (file)
@@ -3055,7 +3055,7 @@ static void cadence_nand_dt_remove(struct platform_device *ofdev)
 
 static struct platform_driver cadence_nand_dt_driver = {
        .probe          = cadence_nand_dt_probe,
-       .remove_new     = cadence_nand_dt_remove,
+       .remove         = cadence_nand_dt_remove,
        .driver         = {
                .name   = "cadence-nand-controller",
                .of_match_table = cadence_nand_dt_ids,
index 3926781..634bdd5 100644 (file)
@@ -901,7 +901,7 @@ static void nand_davinci_remove(struct platform_device *pdev)
 
 static struct platform_driver nand_davinci_driver = {
        .probe          = nand_davinci_probe,
-       .remove_new     = nand_davinci_remove,
+       .remove         = nand_davinci_remove,
        .driver         = {
                .name   = "davinci_nand",
                .of_match_table = of_match_ptr(davinci_nand_of_match),
index 2f56665..e0dd59b 100644 (file)
@@ -225,7 +225,7 @@ static void denali_dt_remove(struct platform_device *pdev)
 
 static struct platform_driver denali_dt_driver = {
        .probe          = denali_dt_probe,
-       .remove_new     = denali_dt_remove,
+       .remove         = denali_dt_remove,
        .driver         = {
                .name   = "denali-nand-dt",
                .of_match_table = denali_nand_dt_ids,
index df6a0d5..03dbe37 100644 (file)
@@ -999,7 +999,7 @@ static struct platform_driver fsl_elbc_nand_driver = {
                .of_match_table = fsl_elbc_nand_match,
        },
        .probe = fsl_elbc_nand_probe,
-       .remove_new = fsl_elbc_nand_remove,
+       .remove = fsl_elbc_nand_remove,
 };
 
 module_platform_driver(fsl_elbc_nand_driver);
index f0e2318..7be95d0 100644 (file)
@@ -1130,7 +1130,7 @@ static struct platform_driver fsl_ifc_nand_driver = {
                .of_match_table = fsl_ifc_nand_match,
        },
        .probe       = fsl_ifc_nand_probe,
-       .remove_new  = fsl_ifc_nand_remove,
+       .remove      = fsl_ifc_nand_remove,
 };
 
 module_platform_driver(fsl_ifc_nand_driver);
index 315e9d2..f4dc990 100644 (file)
@@ -259,7 +259,7 @@ static struct platform_driver of_fun_driver = {
                .of_match_table = of_fun_match,
        },
        .probe          = fun_probe,
-       .remove_new     = fun_remove,
+       .remove         = fun_remove,
 };
 
 module_platform_driver(of_fun_driver);
index 811982d..d579d5d 100644 (file)
@@ -1221,7 +1221,7 @@ static const struct of_device_id fsmc_nand_id_table[] = {
 MODULE_DEVICE_TABLE(of, fsmc_nand_id_table);
 
 static struct platform_driver fsmc_nand_driver = {
-       .remove_new = fsmc_nand_remove,
+       .remove = fsmc_nand_remove,
        .driver = {
                .name = "fsmc-nand",
                .of_match_table = fsmc_nand_id_table,
index d6cc2cb..69e5e43 100644 (file)
@@ -392,7 +392,7 @@ out_ce:
 
 static struct platform_driver gpio_nand_driver = {
        .probe          = gpio_nand_probe,
-       .remove_new     = gpio_nand_remove,
+       .remove         = gpio_nand_remove,
        .driver         = {
                .name   = "gpio-nand",
                .of_match_table = of_match_ptr(gpio_nand_id_table),
index e1b5153..706a5d7 100644 (file)
@@ -2876,8 +2876,8 @@ static struct platform_driver gpmi_nand_driver = {
                .pm = &gpmi_pm_ops,
                .of_match_table = gpmi_nand_id_table,
        },
-       .probe   = gpmi_nand_probe,
-       .remove_new = gpmi_nand_remove,
+       .probe = gpmi_nand_probe,
+       .remove = gpmi_nand_remove,
 };
 module_platform_driver(gpmi_nand_driver);
 
index fe291a2..d97270e 100644 (file)
@@ -858,7 +858,7 @@ static struct platform_driver hisi_nfc_driver = {
                .pm = &hisi_nfc_pm_ops,
        },
        .probe          = hisi_nfc_probe,
-       .remove_new     = hisi_nfc_remove,
+       .remove         = hisi_nfc_remove,
 };
 
 module_platform_driver(hisi_nfc_driver);
index 0e7dd9c..47dc3ef 100644 (file)
@@ -549,7 +549,7 @@ MODULE_DEVICE_TABLE(of, ingenic_nand_dt_match);
 
 static struct platform_driver ingenic_nand_driver = {
        .probe          = ingenic_nand_probe,
-       .remove_new     = ingenic_nand_remove,
+       .remove         = ingenic_nand_remove,
        .driver = {
                .name   = DRV_NAME,
                .of_match_table = ingenic_nand_dt_match,
index 78174c4..c68847f 100644 (file)
@@ -728,7 +728,7 @@ MODULE_DEVICE_TABLE(of, ebu_nand_match);
 
 static struct platform_driver ebu_nand_driver = {
        .probe = ebu_nand_probe,
-       .remove_new = ebu_nand_remove,
+       .remove = ebu_nand_remove,
        .driver = {
                .name = "intel-nand-controller",
                .of_match_table = ebu_nand_match,
index b9c3adc..19b13ae 100644 (file)
@@ -891,7 +891,7 @@ MODULE_DEVICE_TABLE(of, lpc32xx_nand_match);
 
 static struct platform_driver lpc32xx_nand_driver = {
        .probe          = lpc32xx_nand_probe,
-       .remove_new     = lpc32xx_nand_remove,
+       .remove         = lpc32xx_nand_remove,
        .resume         = pm_ptr(lpc32xx_nand_resume),
        .suspend        = pm_ptr(lpc32xx_nand_suspend),
        .driver         = {
index ade971e..b54d765 100644 (file)
@@ -1010,7 +1010,7 @@ MODULE_DEVICE_TABLE(of, lpc32xx_nand_match);
 
 static struct platform_driver lpc32xx_nand_driver = {
        .probe          = lpc32xx_nand_probe,
-       .remove_new     = lpc32xx_nand_remove,
+       .remove         = lpc32xx_nand_remove,
        .resume         = pm_ptr(lpc32xx_nand_resume),
        .suspend        = pm_ptr(lpc32xx_nand_suspend),
        .driver         = {
index 26648b7..e461473 100644 (file)
@@ -3183,7 +3183,7 @@ static struct platform_driver marvell_nfc_driver = {
        },
        .id_table = marvell_nfc_platform_ids,
        .probe = marvell_nfc_probe,
-       .remove_new = marvell_nfc_remove,
+       .remove = marvell_nfc_remove,
 };
 module_platform_driver(marvell_nfc_driver);
 
index fbb06aa..b8834aa 100644 (file)
@@ -1621,7 +1621,7 @@ static void meson_nfc_remove(struct platform_device *pdev)
 
 static struct platform_driver meson_nfc_driver = {
        .probe  = meson_nfc_probe,
-       .remove_new = meson_nfc_remove,
+       .remove = meson_nfc_remove,
        .driver = {
                .name  = "meson-nand",
                .of_match_table = meson_nfc_id_table,
index 215610f..97b4e7f 100644 (file)
@@ -835,7 +835,7 @@ MODULE_DEVICE_TABLE(of, mpc5121_nfc_match);
 
 static struct platform_driver mpc5121_nfc_driver = {
        .probe          = mpc5121_nfc_probe,
-       .remove_new     = mpc5121_nfc_remove,
+       .remove         = mpc5121_nfc_remove,
        .driver         = {
                .name = DRV_NAME,
                .of_match_table = mpc5121_nfc_match,
index 586868b..21c7e11 100644 (file)
@@ -1640,7 +1640,7 @@ static SIMPLE_DEV_PM_OPS(mtk_nfc_pm_ops, mtk_nfc_suspend, mtk_nfc_resume);
 
 static struct platform_driver mtk_nfc_driver = {
        .probe  = mtk_nfc_probe,
-       .remove_new = mtk_nfc_remove,
+       .remove = mtk_nfc_remove,
        .driver = {
                .name  = MTK_NAME,
                .of_match_table = mtk_nfc_id_table,
index 7368081..8c56b68 100644 (file)
@@ -1824,7 +1824,7 @@ static struct platform_driver mxcnd_driver = {
                   .of_match_table = mxcnd_dt_ids,
        },
        .probe = mxcnd_probe,
-       .remove_new = mxcnd_remove,
+       .remove = mxcnd_remove,
 };
 module_platform_driver(mxcnd_driver);
 
index be8050e..92de266 100644 (file)
@@ -574,7 +574,7 @@ MODULE_DEVICE_TABLE(of, mxic_nfc_of_ids);
 
 static struct platform_driver mxic_nfc_driver = {
        .probe = mxic_nfc_probe,
-       .remove_new = mxic_nfc_remove,
+       .remove = mxic_nfc_remove,
        .driver = {
                .name = "mxic-nfc",
                .of_match_table = mxic_nfc_of_ids,
index 3bb32a7..1336512 100644 (file)
@@ -266,7 +266,7 @@ static struct platform_driver ndfc_driver = {
                .of_match_table = ndfc_match,
        },
        .probe = ndfc_probe,
-       .remove_new = ndfc_remove,
+       .remove = ndfc_remove,
 };
 
 module_platform_driver(ndfc_driver);
index cf76afc..d9141f3 100644 (file)
@@ -2291,7 +2291,7 @@ MODULE_DEVICE_TABLE(of, omap_nand_ids);
 
 static struct platform_driver omap_nand_driver = {
        .probe          = omap_nand_probe,
-       .remove_new     = omap_nand_remove,
+       .remove         = omap_nand_remove,
        .driver         = {
                .name   = DRIVER_NAME,
                .of_match_table = omap_nand_ids,
index 4a97d4a..c1d19b8 100644 (file)
@@ -560,7 +560,7 @@ static struct platform_driver elm_driver = {
                .pm     = &elm_pm_ops,
        },
        .probe  = elm_probe,
-       .remove_new = elm_remove,
+       .remove = elm_remove,
 };
 
 module_platform_driver(elm_driver);
index 2951d81..47e80d5 100644 (file)
@@ -214,7 +214,7 @@ MODULE_DEVICE_TABLE(of, orion_nand_of_match_table);
 #endif
 
 static struct platform_driver orion_nand_driver = {
-       .remove_new     = orion_nand_remove,
+       .remove         = orion_nand_remove,
        .driver         = {
                .name   = "orion_nand",
                .of_match_table = of_match_ptr(orion_nand_of_match_table),
index 19b2c9d..0b1f767 100644 (file)
@@ -237,7 +237,7 @@ static struct platform_driver pasemi_nand_driver =
                .of_match_table = pasemi_nand_match,
        },
        .probe          = pasemi_nand_probe,
-       .remove_new     = pasemi_nand_remove,
+       .remove         = pasemi_nand_remove,
 };
 
 module_platform_driver(pasemi_nand_driver);
index 2570fd0..46b2a6b 100644 (file)
@@ -1184,7 +1184,7 @@ MODULE_DEVICE_TABLE(of, pl35x_nand_of_match);
 
 static struct platform_driver pl35x_nandc_driver = {
        .probe = pl35x_nand_probe,
-       .remove_new = pl35x_nand_remove,
+       .remove = pl35x_nand_remove,
        .driver = {
                .name = PL35X_NANDC_DRIVER_NAME,
                .of_match_table = pl35x_nand_of_match,
index b5c374b..0bcd455 100644 (file)
@@ -144,7 +144,7 @@ MODULE_DEVICE_TABLE(of, plat_nand_match);
 
 static struct platform_driver plat_nand_driver = {
        .probe  = plat_nand_probe,
-       .remove_new = plat_nand_remove,
+       .remove = plat_nand_remove,
        .driver = {
                .name           = "gen_nand",
                .of_match_table = plat_nand_match,
index b8cff92..636bba2 100644 (file)
@@ -3535,8 +3535,8 @@ static struct platform_driver qcom_nandc_driver = {
                .name = "qcom-nandc",
                .of_match_table = qcom_nandc_of_match,
        },
-       .probe   = qcom_nandc_probe,
-       .remove_new = qcom_nandc_remove,
+       .probe = qcom_nandc_probe,
+       .remove = qcom_nandc_remove,
 };
 module_platform_driver(qcom_nandc_driver);
 
index 0e92d50..44f6603 100644 (file)
@@ -1402,7 +1402,7 @@ static struct platform_driver rnandc_driver = {
                .of_match_table = rnandc_id_table,
        },
        .probe = rnandc_probe,
-       .remove_new = rnandc_remove,
+       .remove = rnandc_remove,
 };
 module_platform_driver(rnandc_driver);
 
index 51c9cf9..63e7b9e 100644 (file)
@@ -1477,7 +1477,7 @@ static const struct dev_pm_ops rk_nfc_pm_ops = {
 
 static struct platform_driver rk_nfc_driver = {
        .probe = rk_nfc_probe,
-       .remove_new = rk_nfc_remove,
+       .remove = rk_nfc_remove,
        .driver = {
                .name = "rockchip-nfc",
                .of_match_table = rk_nfc_id_table,
index 48c1d0e..229f2e8 100644 (file)
@@ -1213,7 +1213,7 @@ MODULE_DEVICE_TABLE(platform, s3c24xx_driver_ids);
 
 static struct platform_driver s3c24xx_nand_driver = {
        .probe          = s3c24xx_nand_probe,
-       .remove_new     = s3c24xx_nand_remove,
+       .remove         = s3c24xx_nand_remove,
        .suspend        = s3c24xx_nand_suspend,
        .resume         = s3c24xx_nand_resume,
        .id_table       = s3c24xx_driver_ids,
index 2a8164e..97f733e 100644 (file)
@@ -1216,7 +1216,7 @@ static void flctl_remove(struct platform_device *pdev)
 
 static struct platform_driver flctl_driver = {
        .probe          = flctl_probe,
-       .remove_new     = flctl_remove,
+       .remove         = flctl_remove,
        .driver = {
                .name   = "sh_flctl",
                .of_match_table = of_flctl_match,
index 2402dc5..142e93b 100644 (file)
@@ -234,7 +234,7 @@ static struct platform_driver sharpsl_nand_driver = {
                .name   = "sharpsl-nand",
        },
        .probe          = sharpsl_nand_probe,
-       .remove_new     = sharpsl_nand_remove,
+       .remove         = sharpsl_nand_remove,
 };
 
 module_platform_driver(sharpsl_nand_driver);
index 76d50eb..6685846 100644 (file)
@@ -231,7 +231,7 @@ static struct platform_driver socrates_nand_driver = {
                .of_match_table = socrates_nand_match,
        },
        .probe          = socrates_nand_probe,
-       .remove_new     = socrates_nand_remove,
+       .remove         = socrates_nand_remove,
 };
 
 module_platform_driver(socrates_nand_driver);
index 0f67e96..a960403 100644 (file)
@@ -2147,7 +2147,7 @@ MODULE_DEVICE_TABLE(of, stm32_fmc2_nfc_match);
 
 static struct platform_driver stm32_fmc2_nfc_driver = {
        .probe  = stm32_fmc2_nfc_probe,
-       .remove_new = stm32_fmc2_nfc_remove,
+       .remove = stm32_fmc2_nfc_remove,
        .driver = {
                .name = "stm32_fmc2_nfc",
                .of_match_table = stm32_fmc2_nfc_match,
index c28634e..fab371e 100644 (file)
@@ -2196,7 +2196,7 @@ static struct platform_driver sunxi_nfc_driver = {
                .of_match_table = sunxi_nfc_ids,
        },
        .probe = sunxi_nfc_probe,
-       .remove_new = sunxi_nfc_remove,
+       .remove = sunxi_nfc_remove,
 };
 module_platform_driver(sunxi_nfc_driver);
 
index 0e45a6f..a3294aa 100644 (file)
@@ -213,7 +213,7 @@ static struct platform_driver ts72xx_nand_driver = {
                .of_match_table = ts72xx_id_table,
        },
        .probe = ts72xx_nand_probe,
-       .remove_new = ts72xx_nand_remove,
+       .remove = ts72xx_nand_remove,
 };
 module_platform_driver(ts72xx_nand_driver);
 
index a553e3a..7f9eb5f 100644 (file)
@@ -1279,7 +1279,7 @@ static struct platform_driver tegra_nand_driver = {
                .pm = &tegra_nand_pm,
        },
        .probe = tegra_nand_probe,
-       .remove_new = tegra_nand_remove,
+       .remove = tegra_nand_remove,
 };
 module_platform_driver(tegra_nand_driver);
 
index 37f79c0..907fb5d 100644 (file)
@@ -405,7 +405,7 @@ static int txx9ndfmc_resume(struct platform_device *dev)
 
 static struct platform_driver txx9ndfmc_driver = {
        .probe          = txx9ndfmc_probe,
-       .remove_new     = txx9ndfmc_remove,
+       .remove         = txx9ndfmc_remove,
        .resume         = txx9ndfmc_resume,
        .driver         = {
                .name   = "txx9ndfmc",
index f31d232..4b5ba31 100644 (file)
@@ -941,7 +941,7 @@ static struct platform_driver vf610_nfc_driver = {
                .pm     = &vf610_nfc_pm_ops,
        },
        .probe          = vf610_nfc_probe,
-       .remove_new     = vf610_nfc_remove,
+       .remove         = vf610_nfc_remove,
 };
 
 module_platform_driver(vf610_nfc_driver);
index 0085490..af84395 100644 (file)
@@ -256,7 +256,7 @@ static const struct of_device_id xway_nand_match[] = {
 
 static struct platform_driver xway_nand_driver = {
        .probe  = xway_nand_probe,
-       .remove_new = xway_nand_remove,
+       .remove = xway_nand_remove,
        .driver = {
                .name           = "lantiq,nand-xway",
                .of_match_table = xway_nand_match,
index 89a7f0b..db948da 100644 (file)
@@ -488,7 +488,7 @@ static struct platform_driver hisi_spi_nor_driver = {
                .of_match_table = hisi_spi_nor_dt_ids,
        },
        .probe  = hisi_spi_nor_probe,
-       .remove_new = hisi_spi_nor_remove,
+       .remove = hisi_spi_nor_remove,
 };
 module_platform_driver(hisi_spi_nor_driver);
 
index 5aee62f..1a92d71 100644 (file)
@@ -446,7 +446,7 @@ MODULE_DEVICE_TABLE(of, nxp_spifi_match);
 
 static struct platform_driver nxp_spifi_driver = {
        .probe  = nxp_spifi_probe,
-       .remove_new = nxp_spifi_remove,
+       .remove = nxp_spifi_remove,
        .driver = {
                .name = "nxp-spifi",
                .of_match_table = nxp_spifi_match,