]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 9 Oct 2024 06:00:57 +0000 (08:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Oct 2024 18:31:50 +0000 (19:31 +0100)
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/iio/ 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 <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20241009060056.502059-2-u.kleine-koenig@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
47 files changed:
drivers/iio/accel/hid-sensor-accel-3d.c
drivers/iio/adc/ab8500-gpadc.c
drivers/iio/adc/at91-sama5d2_adc.c
drivers/iio/adc/at91_adc.c
drivers/iio/adc/axp20x_adc.c
drivers/iio/adc/bcm_iproc_adc.c
drivers/iio/adc/dln2-adc.c
drivers/iio/adc/ep93xx_adc.c
drivers/iio/adc/exynos_adc.c
drivers/iio/adc/imx8qxp-adc.c
drivers/iio/adc/imx93_adc.c
drivers/iio/adc/meson_saradc.c
drivers/iio/adc/mp2629_adc.c
drivers/iio/adc/mxs-lradc-adc.c
drivers/iio/adc/npcm_adc.c
drivers/iio/adc/qcom-pm8xxx-xoadc.c
drivers/iio/adc/rcar-gyroadc.c
drivers/iio/adc/stm32-adc-core.c
drivers/iio/adc/stm32-adc.c
drivers/iio/adc/stm32-dfsdm-adc.c
drivers/iio/adc/stm32-dfsdm-core.c
drivers/iio/adc/sun4i-gpadc-iio.c
drivers/iio/adc/ti_am335x_adc.c
drivers/iio/adc/twl4030-madc.c
drivers/iio/adc/twl6030-gpadc.c
drivers/iio/adc/vf610_adc.c
drivers/iio/dac/dpot-dac.c
drivers/iio/dac/lpc18xx_dac.c
drivers/iio/dac/stm32-dac-core.c
drivers/iio/dac/stm32-dac.c
drivers/iio/dac/vf610_dac.c
drivers/iio/gyro/hid-sensor-gyro-3d.c
drivers/iio/humidity/hid-sensor-humidity.c
drivers/iio/light/cm3605.c
drivers/iio/light/hid-sensor-als.c
drivers/iio/light/hid-sensor-prox.c
drivers/iio/light/lm3533-als.c
drivers/iio/magnetometer/hid-sensor-magn-3d.c
drivers/iio/orientation/hid-sensor-incl-3d.c
drivers/iio/orientation/hid-sensor-rotation.c
drivers/iio/position/hid-sensor-custom-intel-hinge.c
drivers/iio/pressure/hid-sensor-press.c
drivers/iio/proximity/cros_ec_mkbp_proximity.c
drivers/iio/proximity/srf04.c
drivers/iio/temperature/hid-sensor-temperature.c
drivers/iio/trigger/iio-trig-interrupt.c
drivers/iio/trigger/stm32-timer-trigger.c

index 2d5fa3a5d3be79c4814a01d08092f2acdf0447bc..26b1033799fefdc9c80aeab0968543094a215450 100644 (file)
@@ -451,7 +451,7 @@ static struct platform_driver hid_accel_3d_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_accel_3d_probe,
-       .remove_new     = hid_accel_3d_remove,
+       .remove         = hid_accel_3d_remove,
 };
 module_platform_driver(hid_accel_3d_platform_driver);
 
index 59f66e9cb0e8676872543b950350d448fde1a31d..f3b057f9231004e99b5b5844fc72e16f485a75ed 100644 (file)
@@ -1194,7 +1194,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(ab8500_gpadc_pm_ops,
 
 static struct platform_driver ab8500_gpadc_driver = {
        .probe = ab8500_gpadc_probe,
-       .remove_new = ab8500_gpadc_remove,
+       .remove = ab8500_gpadc_remove,
        .driver = {
                .name = "ab8500-gpadc",
                .pm = pm_ptr(&ab8500_gpadc_pm_ops),
index d7fd21e7c6e2a607916205fa1ed8fe989132455d..8e5aaf15a9215083d90312e037b18c2b09e132e8 100644 (file)
@@ -2625,7 +2625,7 @@ MODULE_DEVICE_TABLE(of, at91_adc_dt_match);
 
 static struct platform_driver at91_adc_driver = {
        .probe = at91_adc_probe,
-       .remove_new = at91_adc_remove,
+       .remove = at91_adc_remove,
        .driver = {
                .name = "at91-sama5d2_adc",
                .of_match_table = at91_adc_dt_match,
index 9c39acff17e6585937d10670a72f088620f0b5ac..a3f0a232166613239abd58652339a433698c86f2 100644 (file)
@@ -1341,7 +1341,7 @@ MODULE_DEVICE_TABLE(of, at91_adc_dt_ids);
 
 static struct platform_driver at91_adc_driver = {
        .probe = at91_adc_probe,
-       .remove_new = at91_adc_remove,
+       .remove = at91_adc_remove,
        .driver = {
                   .name = DRIVER_NAME,
                   .of_match_table = at91_adc_dt_ids,
index b2a22f4eb9e47e14f35f4b0d92e79abdd5d6b173..c6a783512f938edd4f27ba71dc7b602e2e6badf5 100644 (file)
@@ -1182,7 +1182,7 @@ static struct platform_driver axp20x_adc_driver = {
        },
        .id_table = axp20x_adc_id_match,
        .probe = axp20x_probe,
-       .remove_new = axp20x_remove,
+       .remove = axp20x_remove,
 };
 
 module_platform_driver(axp20x_adc_driver);
index cdfe304eaa201112ac0d8d529809e8e26ffafdce..f258668b0dc71ee8f4de4ab01a6819a39250f333 100644 (file)
@@ -611,10 +611,10 @@ static const struct of_device_id iproc_adc_of_match[] = {
 MODULE_DEVICE_TABLE(of, iproc_adc_of_match);
 
 static struct platform_driver iproc_adc_driver = {
-       .probe  = iproc_adc_probe,
-       .remove_new = iproc_adc_remove,
-       .driver = {
-               .name   = "iproc-static-adc",
+       .probe = iproc_adc_probe,
+       .remove = iproc_adc_remove,
+       .driver = {
+               .name = "iproc-static-adc",
                .of_match_table = iproc_adc_of_match,
        },
 };
index de7252a10047d56d391bbb5e238bf7eb7730c5e5..30328626d9beef28beb077c4de3767886c3b4e96 100644 (file)
@@ -700,7 +700,7 @@ static void dln2_adc_remove(struct platform_device *pdev)
 static struct platform_driver dln2_adc_driver = {
        .driver.name    = DLN2_ADC_MOD_NAME,
        .probe          = dln2_adc_probe,
-       .remove_new     = dln2_adc_remove,
+       .remove         = dln2_adc_remove,
 };
 
 module_platform_driver(dln2_adc_driver);
index cc38d5e0608eed8a4d514c7e94d26adc035ba924..a3e9c697e2cbee73ea09084273ae4b1acb872e2e 100644 (file)
@@ -238,7 +238,7 @@ static struct platform_driver ep93xx_adc_driver = {
                .of_match_table = ep93xx_adc_of_ids,
        },
        .probe = ep93xx_adc_probe,
-       .remove_new = ep93xx_adc_remove,
+       .remove = ep93xx_adc_remove,
 };
 module_platform_driver(ep93xx_adc_driver);
 
index 4d00ee8dd14d0898a1f28b518f7d12d87bc19046..4614cf848535944a41e0ab19f35c5ca0546000c0 100644 (file)
@@ -1008,7 +1008,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(exynos_adc_pm_ops, exynos_adc_suspend,
 
 static struct platform_driver exynos_adc_driver = {
        .probe          = exynos_adc_probe,
-       .remove_new     = exynos_adc_remove,
+       .remove         = exynos_adc_remove,
        .driver         = {
                .name   = "exynos-adc",
                .of_match_table = exynos_adc_match,
index fe82198170d5999b0648d5adbc0f156ca5b2e0e6..3d19d7d744aa46d8bfaeb2c36503297f56ebd36f 100644 (file)
@@ -487,7 +487,7 @@ MODULE_DEVICE_TABLE(of, imx8qxp_adc_match);
 
 static struct platform_driver imx8qxp_adc_driver = {
        .probe          = imx8qxp_adc_probe,
-       .remove_new     = imx8qxp_adc_remove,
+       .remove         = imx8qxp_adc_remove,
        .driver         = {
                .name   = ADC_DRIVER_NAME,
                .of_match_table = imx8qxp_adc_match,
index 4ccf4819f1f131f3283bf804424e842705b9bf53..002eb19587d679789a9affa1f9514a720998c470 100644 (file)
@@ -470,7 +470,7 @@ MODULE_DEVICE_TABLE(of, imx93_adc_match);
 
 static struct platform_driver imx93_adc_driver = {
        .probe          = imx93_adc_probe,
-       .remove_new     = imx93_adc_remove,
+       .remove         = imx93_adc_remove,
        .driver         = {
                .name   = IMX93_ADC_DRIVER_NAME,
                .of_match_table = imx93_adc_match,
index e16b0e28974e8ffc0e2ab5a56c7f8b7e8e8fa87b..2d475b43e717ff08a2e5e20504dc657ebbb921a5 100644 (file)
@@ -1483,7 +1483,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(meson_sar_adc_pm_ops,
 
 static struct platform_driver meson_sar_adc_driver = {
        .probe          = meson_sar_adc_probe,
-       .remove_new     = meson_sar_adc_remove,
+       .remove         = meson_sar_adc_remove,
        .driver         = {
                .name   = "meson-saradc",
                .of_match_table = meson_sar_adc_of_match,
index 921d3e1937529f0fca731bbb8082c84a9cb3ef6f..1cb043b17437780970ce355f9d93fd36cbd26826 100644 (file)
@@ -195,7 +195,7 @@ static struct platform_driver mp2629_adc_driver = {
                .of_match_table = mp2629_adc_of_match,
        },
        .probe          = mp2629_adc_probe,
-       .remove_new     = mp2629_adc_remove,
+       .remove         = mp2629_adc_remove,
 };
 module_platform_driver(mp2629_adc_driver);
 
index 8c7b64e78dbbc8a8e0483195d91a3c7185bd0a7e..152cbe265e1a2ea9acf934f3a9ccef2da2628c40 100644 (file)
@@ -819,10 +819,10 @@ static void mxs_lradc_adc_remove(struct platform_device *pdev)
 
 static struct platform_driver mxs_lradc_adc_driver = {
        .driver = {
-               .name   = "mxs-lradc-adc",
+               .name = "mxs-lradc-adc",
        },
-       .probe  = mxs_lradc_adc_probe,
-       .remove_new = mxs_lradc_adc_remove,
+       .probe = mxs_lradc_adc_probe,
+       .remove = mxs_lradc_adc_remove,
 };
 module_platform_driver(mxs_lradc_adc_driver);
 
index 3a55465951e7938311e5f1c4e668f7c8770b82a6..7c1511ee3a4b4a3278e0390f59809ccd9ef9722f 100644 (file)
@@ -337,7 +337,7 @@ static void npcm_adc_remove(struct platform_device *pdev)
 
 static struct platform_driver npcm_adc_driver = {
        .probe          = npcm_adc_probe,
-       .remove_new     = npcm_adc_remove,
+       .remove         = npcm_adc_remove,
        .driver         = {
                .name   = "npcm_adc",
                .of_match_table = npcm_adc_match,
index 311e9a804ded1739e641ef61094c31e004ba7f11..31f88cf7f7f18297132d152648b312c0fb60608e 100644 (file)
@@ -1014,7 +1014,7 @@ static struct platform_driver pm8xxx_xoadc_driver = {
                .of_match_table = pm8xxx_xoadc_id_table,
        },
        .probe          = pm8xxx_xoadc_probe,
-       .remove_new     = pm8xxx_xoadc_remove,
+       .remove         = pm8xxx_xoadc_remove,
 };
 module_platform_driver(pm8xxx_xoadc_driver);
 
index 15a21d2860e758f3dec44403e79a4d2271199496..11170b5852d17f52e5a088de47605d5c83ddca74 100644 (file)
@@ -592,7 +592,7 @@ static const struct dev_pm_ops rcar_gyroadc_pm_ops = {
 
 static struct platform_driver rcar_gyroadc_driver = {
        .probe          = rcar_gyroadc_probe,
-       .remove_new     = rcar_gyroadc_remove,
+       .remove         = rcar_gyroadc_remove,
        .driver         = {
                .name           = DRIVER_NAME,
                .of_match_table = rcar_gyroadc_match,
index 616dd729666aa1129c465e040ab701956d91d4ec..2201ee9987ae426a2497a2725a85ec877d52fea0 100644 (file)
@@ -906,7 +906,7 @@ MODULE_DEVICE_TABLE(of, stm32_adc_of_match);
 
 static struct platform_driver stm32_adc_driver = {
        .probe = stm32_adc_probe,
-       .remove_new = stm32_adc_remove,
+       .remove = stm32_adc_remove,
        .driver = {
                .name = "stm32-adc-core",
                .of_match_table = stm32_adc_of_match,
index 32ca26ed59f7af111d4da0caa73cafa98fd472c4..9d3b23efcc068a794636a069e89005001508c91a 100644 (file)
@@ -2644,7 +2644,7 @@ MODULE_DEVICE_TABLE(of, stm32_adc_of_match);
 
 static struct platform_driver stm32_adc_driver = {
        .probe = stm32_adc_probe,
-       .remove_new = stm32_adc_remove,
+       .remove = stm32_adc_remove,
        .driver = {
                .name = "stm32-adc",
                .of_match_table = stm32_adc_of_match,
index 2037f73426d4b3420072ad578548a4eb20611204..c2d4f5339cd456e2ce156463836e7feac2b8929b 100644 (file)
@@ -1890,7 +1890,7 @@ static struct platform_driver stm32_dfsdm_adc_driver = {
                .pm = pm_sleep_ptr(&stm32_dfsdm_adc_pm_ops),
        },
        .probe = stm32_dfsdm_adc_probe,
-       .remove_new = stm32_dfsdm_adc_remove,
+       .remove = stm32_dfsdm_adc_remove,
 };
 module_platform_driver(stm32_dfsdm_adc_driver);
 
index bef59fcc0d807c9626ef530bf8da536cc1a0fafd..041dc9ebc048237ee699f6ee51e2f152342f26b5 100644 (file)
@@ -506,7 +506,7 @@ static const struct dev_pm_ops stm32_dfsdm_core_pm_ops = {
 
 static struct platform_driver stm32_dfsdm_driver = {
        .probe = stm32_dfsdm_probe,
-       .remove_new = stm32_dfsdm_core_remove,
+       .remove = stm32_dfsdm_core_remove,
        .driver = {
                .name = "stm32-dfsdm",
                .of_match_table = stm32_dfsdm_of_match,
index 00a3a4db0fe02fcd97f3ddb1608e13c90478a6af..8b27458dcd661bb6cd9958d2ea0c5746ee68f35c 100644 (file)
@@ -697,7 +697,7 @@ static struct platform_driver sun4i_gpadc_driver = {
        },
        .id_table = sun4i_gpadc_id,
        .probe = sun4i_gpadc_probe,
-       .remove_new = sun4i_gpadc_remove,
+       .remove = sun4i_gpadc_remove,
 };
 MODULE_DEVICE_TABLE(of, sun4i_gpadc_of_id);
 
index d362eba6cd7c0471696b729cf9932406635f5094..fe1509d3b1e766cf13ea77b1d6b0781f54515dba 100644 (file)
@@ -740,12 +740,12 @@ MODULE_DEVICE_TABLE(of, ti_adc_dt_ids);
 
 static struct platform_driver tiadc_driver = {
        .driver = {
-               .name   = "TI-am335x-adc",
-               .pm     = pm_sleep_ptr(&tiadc_pm_ops),
+               .name = "TI-am335x-adc",
+               .pm = pm_sleep_ptr(&tiadc_pm_ops),
                .of_match_table = ti_adc_dt_ids,
        },
-       .probe  = tiadc_probe,
-       .remove_new = tiadc_remove,
+       .probe = tiadc_probe,
+       .remove = tiadc_remove,
 };
 module_platform_driver(tiadc_driver);
 
index 563478e9c5eb74ce43daef90ec6c18c7e889bc9c..0ea51ddeaa0a0a9bc22caa75b5001584993bfc73 100644 (file)
@@ -914,7 +914,7 @@ MODULE_DEVICE_TABLE(of, twl_madc_of_match);
 
 static struct platform_driver twl4030_madc_driver = {
        .probe = twl4030_madc_probe,
-       .remove_new = twl4030_madc_remove,
+       .remove = twl4030_madc_remove,
        .driver = {
                   .name = "twl4030_madc",
                   .of_match_table = twl_madc_of_match,
index 6a3db2bce460903dd6f242820055022b090fa1f6..ef7430e6877dcd160a644a4a72bd1e79fdb42be0 100644 (file)
@@ -1003,7 +1003,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(twl6030_gpadc_pm_ops, twl6030_gpadc_suspend,
 
 static struct platform_driver twl6030_gpadc_driver = {
        .probe          = twl6030_gpadc_probe,
-       .remove_new     = twl6030_gpadc_remove,
+       .remove         = twl6030_gpadc_remove,
        .driver         = {
                .name   = DRIVER_NAME,
                .pm     = pm_sleep_ptr(&twl6030_gpadc_pm_ops),
index 5afd2feb8c3ddcea1b66ef02acbc967338d94508..4d83c12975c53a82b5f47fb62b2c377aed0beebb 100644 (file)
@@ -972,7 +972,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(vf610_adc_pm_ops, vf610_adc_suspend,
 
 static struct platform_driver vf610_adc_driver = {
        .probe          = vf610_adc_probe,
-       .remove_new     = vf610_adc_remove,
+       .remove         = vf610_adc_remove,
        .driver         = {
                .name   = DRIVER_NAME,
                .of_match_table = vf610_adc_match,
index 7332064d0852d979620f90066fb027f6f68f8c95..f36f10bfb6be7863a56b911b5f58671ef530c977 100644 (file)
@@ -243,7 +243,7 @@ MODULE_DEVICE_TABLE(of, dpot_dac_match);
 
 static struct platform_driver dpot_dac_driver = {
        .probe = dpot_dac_probe,
-       .remove_new = dpot_dac_remove,
+       .remove = dpot_dac_remove,
        .driver = {
                .name = "iio-dpot-dac",
                .of_match_table = dpot_dac_match,
index b3aa4443a6a4849e1b311a8aa1e8ec5fbea30fa2..2332b0c22691522d44407a51544d60292a833de0 100644 (file)
@@ -184,9 +184,9 @@ static const struct of_device_id lpc18xx_dac_match[] = {
 MODULE_DEVICE_TABLE(of, lpc18xx_dac_match);
 
 static struct platform_driver lpc18xx_dac_driver = {
-       .probe  = lpc18xx_dac_probe,
-       .remove_new = lpc18xx_dac_remove,
-       .driver = {
+       .probe = lpc18xx_dac_probe,
+       .remove = lpc18xx_dac_remove,
+       .driver = {
                .name = "lpc18xx-dac",
                .of_match_table = lpc18xx_dac_match,
        },
index 2d567073996b7971e0ffcf9820aa07bc1c4e7646..95ed5197d16f563ab68eefebec41a30f8c191b02 100644 (file)
@@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, stm32_dac_of_match);
 
 static struct platform_driver stm32_dac_driver = {
        .probe = stm32_dac_probe,
-       .remove_new = stm32_dac_remove,
+       .remove = stm32_dac_remove,
        .driver = {
                .name = "stm32-dac-core",
                .of_match_table = stm32_dac_of_match,
index 5a722f307e7e305fe4b0fd959af45fa663d3a948..3bfb368b3a234022ef88ee25e8d19fb2dbc7531e 100644 (file)
@@ -398,7 +398,7 @@ MODULE_DEVICE_TABLE(of, stm32_dac_of_match);
 
 static struct platform_driver stm32_dac_driver = {
        .probe = stm32_dac_probe,
-       .remove_new = stm32_dac_remove,
+       .remove = stm32_dac_remove,
        .driver = {
                .name = "stm32-dac",
                .of_match_table = stm32_dac_of_match,
index de73bc5a1c93c9ec839a45448e98b855cf2b5215..82a078fa98ad9a86d1d09b456a93321d197b3d0e 100644 (file)
@@ -272,7 +272,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(vf610_dac_pm_ops, vf610_dac_suspend,
 
 static struct platform_driver vf610_dac_driver = {
        .probe          = vf610_dac_probe,
-       .remove_new     = vf610_dac_remove,
+       .remove         = vf610_dac_remove,
        .driver         = {
                .name   = "vf610-dac",
                .of_match_table = vf610_dac_match,
index f9c6b2e732b7e9b883880f8494c14be692b01a5c..0598f1d3fbb3d1b43c92df0c833fbed030ff0c35 100644 (file)
@@ -386,7 +386,7 @@ static struct platform_driver hid_gyro_3d_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_gyro_3d_probe,
-       .remove_new     = hid_gyro_3d_remove,
+       .remove         = hid_gyro_3d_remove,
 };
 module_platform_driver(hid_gyro_3d_platform_driver);
 
index eb1c022f73c8ba20831cb01deeb4f078ea5c2c92..f2fa0e1631ffae5cacdaf63cf90dd3ea448ff109 100644 (file)
@@ -287,7 +287,7 @@ static struct platform_driver hid_humidity_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_humidity_probe,
-       .remove_new     = hid_humidity_remove,
+       .remove         = hid_humidity_remove,
 };
 module_platform_driver(hid_humidity_platform_driver);
 
index 22a63a89f289a28fccd310547031542bdd2c9bc2..675c0fd44db45a7c32b98c21be61e1d5d4a0e081 100644 (file)
@@ -318,7 +318,7 @@ static struct platform_driver cm3605_driver = {
                .pm = pm_sleep_ptr(&cm3605_dev_pm_ops),
        },
        .probe = cm3605_probe,
-       .remove_new = cm3605_remove,
+       .remove = cm3605_remove,
 };
 module_platform_driver(cm3605_driver);
 
index 30332bf96d28a66fae75d094e4672fc14eaa8373..4eb692322432007ecaa1f7694c38825ef3395b8a 100644 (file)
@@ -467,7 +467,7 @@ static struct platform_driver hid_als_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_als_probe,
-       .remove_new     = hid_als_remove,
+       .remove         = hid_als_remove,
 };
 module_platform_driver(hid_als_platform_driver);
 
index 5343ebd404bf4bcc60a55dfb57700e316e69e5f6..8fe50f89716988ec39a6b3f7c9535f26209ca7d3 100644 (file)
@@ -344,7 +344,7 @@ static struct platform_driver hid_prox_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_prox_probe,
-       .remove_new     = hid_prox_remove,
+       .remove         = hid_prox_remove,
 };
 module_platform_driver(hid_prox_platform_driver);
 
index 6429d951ce7f715f6566a8a1e1d905ddf12f3823..99f0b903018cf885d7755e6096dd86ded4dcdbe5 100644 (file)
@@ -912,7 +912,7 @@ static struct platform_driver lm3533_als_driver = {
                .name   = "lm3533-als",
        },
        .probe          = lm3533_als_probe,
-       .remove_new     = lm3533_als_remove,
+       .remove         = lm3533_als_remove,
 };
 module_platform_driver(lm3533_als_driver);
 
index ae10db87d1e1d12bd14a5c6b8d20bef81c950ac7..1d6fcbbae1c5da91f04dd29091e9edc415f26e39 100644 (file)
@@ -574,7 +574,7 @@ static struct platform_driver hid_magn_3d_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_magn_3d_probe,
-       .remove_new     = hid_magn_3d_remove,
+       .remove         = hid_magn_3d_remove,
 };
 module_platform_driver(hid_magn_3d_platform_driver);
 
index 5a0d990018aa2384cdbaf978bc38f3880c7ab2e3..c74b92d53d4d1506655cc54a3e775c617292c2b8 100644 (file)
@@ -410,7 +410,7 @@ static struct platform_driver hid_incl_3d_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_incl_3d_probe,
-       .remove_new     = hid_incl_3d_remove,
+       .remove         = hid_incl_3d_remove,
 };
 module_platform_driver(hid_incl_3d_platform_driver);
 
index 414d840afb4241699e6de77a14c5a7168c809b33..343be43163e4c8ecb0db69c8bf67784aed868f3b 100644 (file)
@@ -362,7 +362,7 @@ static struct platform_driver hid_dev_rot_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_dev_rot_probe,
-       .remove_new     = hid_dev_rot_remove,
+       .remove         = hid_dev_rot_remove,
 };
 module_platform_driver(hid_dev_rot_platform_driver);
 
index 033a82781fdb053d10f77e4685158918f9085585..3a6c7e50cc70b895705a14552c857718579aabe9 100644 (file)
@@ -369,7 +369,7 @@ static struct platform_driver hid_hinge_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_hinge_probe,
-       .remove_new     = hid_hinge_remove,
+       .remove         = hid_hinge_remove,
 };
 module_platform_driver(hid_hinge_platform_driver);
 
index a906da4f9546d38d617a6f29105250b51b754e88..dfc36430c467c36c6a253f24d2ac3acc847831f2 100644 (file)
@@ -350,7 +350,7 @@ static struct platform_driver hid_press_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_press_probe,
-       .remove_new     = hid_press_remove,
+       .remove         = hid_press_remove,
 };
 module_platform_driver(hid_press_platform_driver);
 
index cff57d851762ea23d47a3105c50e1396f30874a6..cf9b4cf61d27ad373d78e42e03192aab610a2765 100644 (file)
@@ -261,7 +261,7 @@ static struct platform_driver cros_ec_mkbp_proximity_driver = {
                .pm = pm_sleep_ptr(&cros_ec_mkbp_proximity_pm_ops),
        },
        .probe = cros_ec_mkbp_proximity_probe,
-       .remove_new = cros_ec_mkbp_proximity_remove,
+       .remove = cros_ec_mkbp_proximity_remove,
 };
 module_platform_driver(cros_ec_mkbp_proximity_driver);
 
index 86c57672fc7e36f6f40babb5d58b076b31f59061..71ad29e441b23773afb18724df53769eea1d1733 100644 (file)
@@ -389,7 +389,7 @@ static const struct dev_pm_ops srf04_pm_ops = {
 
 static struct platform_driver srf04_driver = {
        .probe          = srf04_probe,
-       .remove_new     = srf04_remove,
+       .remove         = srf04_remove,
        .driver         = {
                .name           = "srf04-gpio",
                .of_match_table = of_srf04_match,
index d2209cd5b98c74bc4449a9766b1b515bf2203ab3..0e21217472abb09b07dbb4ec652f4a410394ce48 100644 (file)
@@ -283,7 +283,7 @@ static struct platform_driver hid_temperature_platform_driver = {
                .pm     = &hid_sensor_pm_ops,
        },
        .probe          = hid_temperature_probe,
-       .remove_new     = hid_temperature_remove,
+       .remove         = hid_temperature_remove,
 };
 module_platform_driver(hid_temperature_platform_driver);
 
index dec256bfbd73e1e636e50cae514a57361a0a2ae7..21c6b6292a721a49032204b7f30aa5c02b76dd26 100644 (file)
@@ -96,7 +96,7 @@ static void iio_interrupt_trigger_remove(struct platform_device *pdev)
 
 static struct platform_driver iio_interrupt_trigger_driver = {
        .probe = iio_interrupt_trigger_probe,
-       .remove_new = iio_interrupt_trigger_remove,
+       .remove = iio_interrupt_trigger_remove,
        .driver = {
                .name = "iio_interrupt_trigger",
        },
index 0684329956d9562341314b15090ab99ee5056ab5..bb60b2d7b2eca54ca1a9eff82b9b177c618905f4 100644 (file)
@@ -900,7 +900,7 @@ MODULE_DEVICE_TABLE(of, stm32_trig_of_match);
 
 static struct platform_driver stm32_timer_trigger_driver = {
        .probe = stm32_timer_trigger_probe,
-       .remove_new = stm32_timer_trigger_remove,
+       .remove = stm32_timer_trigger_remove,
        .driver = {
                .name = "stm32-timer-trigger",
                .of_match_table = stm32_trig_of_match,