mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
media: Switch back to struct platform_driver::remove()
After commit 0edb555a65 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.
Convert all platform drivers below drivers/media 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: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
2f88509db0
commit
b8fc42dc06
@@ -279,7 +279,7 @@ MODULE_DEVICE_TABLE(of, cec_gpio_match);
|
||||
|
||||
static struct platform_driver cec_gpio_pdrv = {
|
||||
.probe = cec_gpio_probe,
|
||||
.remove_new = cec_gpio_remove,
|
||||
.remove = cec_gpio_remove,
|
||||
.driver = {
|
||||
.name = "cec-gpio",
|
||||
.of_match_table = cec_gpio_match,
|
||||
|
||||
@@ -582,7 +582,7 @@ MODULE_DEVICE_TABLE(platform, cros_ec_cec_id);
|
||||
|
||||
static struct platform_driver cros_ec_cec_driver = {
|
||||
.probe = cros_ec_cec_probe,
|
||||
.remove_new = cros_ec_cec_remove,
|
||||
.remove = cros_ec_cec_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.pm = &cros_ec_cec_pm_ops,
|
||||
|
||||
@@ -778,7 +778,7 @@ MODULE_DEVICE_TABLE(of, meson_ao_cec_g12a_of_match);
|
||||
|
||||
static struct platform_driver meson_ao_cec_g12a_driver = {
|
||||
.probe = meson_ao_cec_g12a_probe,
|
||||
.remove_new = meson_ao_cec_g12a_remove,
|
||||
.remove = meson_ao_cec_g12a_remove,
|
||||
.driver = {
|
||||
.name = "meson-ao-cec-g12a",
|
||||
.of_match_table = of_match_ptr(meson_ao_cec_g12a_of_match),
|
||||
|
||||
@@ -714,7 +714,7 @@ MODULE_DEVICE_TABLE(of, meson_ao_cec_of_match);
|
||||
|
||||
static struct platform_driver meson_ao_cec_driver = {
|
||||
.probe = meson_ao_cec_probe,
|
||||
.remove_new = meson_ao_cec_remove,
|
||||
.remove = meson_ao_cec_remove,
|
||||
.driver = {
|
||||
.name = "meson-ao-cec",
|
||||
.of_match_table = meson_ao_cec_of_match,
|
||||
|
||||
@@ -294,7 +294,7 @@ MODULE_DEVICE_TABLE(of, s5p_cec_match);
|
||||
|
||||
static struct platform_driver s5p_cec_pdrv = {
|
||||
.probe = s5p_cec_probe,
|
||||
.remove_new = s5p_cec_remove,
|
||||
.remove = s5p_cec_remove,
|
||||
.driver = {
|
||||
.name = CEC_NAME,
|
||||
.of_match_table = s5p_cec_match,
|
||||
|
||||
@@ -778,7 +778,7 @@ static struct platform_driver secocec_driver = {
|
||||
.pm = SECOCEC_PM_OPS,
|
||||
},
|
||||
.probe = secocec_probe,
|
||||
.remove_new = secocec_remove,
|
||||
.remove = secocec_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(secocec_driver);
|
||||
|
||||
@@ -383,7 +383,7 @@ MODULE_DEVICE_TABLE(of, stih_cec_match);
|
||||
|
||||
static struct platform_driver stih_cec_pdrv = {
|
||||
.probe = stih_cec_probe,
|
||||
.remove_new = stih_cec_remove,
|
||||
.remove = stih_cec_remove,
|
||||
.driver = {
|
||||
.name = CEC_NAME,
|
||||
.of_match_table = stih_cec_match,
|
||||
|
||||
@@ -361,7 +361,7 @@ MODULE_DEVICE_TABLE(of, stm32_cec_of_match);
|
||||
|
||||
static struct platform_driver stm32_cec_driver = {
|
||||
.probe = stm32_cec_probe,
|
||||
.remove_new = stm32_cec_remove,
|
||||
.remove = stm32_cec_remove,
|
||||
.driver = {
|
||||
.name = CEC_NAME,
|
||||
.of_match_table = stm32_cec_of_match,
|
||||
|
||||
@@ -465,7 +465,7 @@ static struct platform_driver tegra_cec_driver = {
|
||||
.of_match_table = tegra_cec_of_match,
|
||||
},
|
||||
.probe = tegra_cec_probe,
|
||||
.remove_new = tegra_cec_remove,
|
||||
.remove = tegra_cec_remove,
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
.suspend = tegra_cec_suspend,
|
||||
|
||||
@@ -1487,7 +1487,7 @@ static struct platform_driver rtl2832_sdr_driver = {
|
||||
.name = "rtl2832_sdr",
|
||||
},
|
||||
.probe = rtl2832_sdr_probe,
|
||||
.remove_new = rtl2832_sdr_remove,
|
||||
.remove = rtl2832_sdr_remove,
|
||||
};
|
||||
module_platform_driver(rtl2832_sdr_driver);
|
||||
|
||||
|
||||
@@ -531,7 +531,7 @@ static struct platform_driver zd1301_demod_driver = {
|
||||
.suppress_bind_attrs = true,
|
||||
},
|
||||
.probe = zd1301_demod_probe,
|
||||
.remove_new = zd1301_demod_remove,
|
||||
.remove = zd1301_demod_remove,
|
||||
};
|
||||
module_platform_driver(zd1301_demod_driver);
|
||||
|
||||
|
||||
@@ -4003,7 +4003,7 @@ static const struct dev_pm_ops allegro_pm_ops = {
|
||||
|
||||
static struct platform_driver allegro_driver = {
|
||||
.probe = allegro_probe,
|
||||
.remove_new = allegro_remove,
|
||||
.remove = allegro_remove,
|
||||
.driver = {
|
||||
.name = "allegro",
|
||||
.of_match_table = allegro_dt_ids,
|
||||
|
||||
@@ -1045,7 +1045,7 @@ MODULE_DEVICE_TABLE(of, meson_ge2d_match);
|
||||
|
||||
static struct platform_driver ge2d_drv = {
|
||||
.probe = ge2d_probe,
|
||||
.remove_new = ge2d_remove,
|
||||
.remove = ge2d_remove,
|
||||
.driver = {
|
||||
.name = "meson-ge2d",
|
||||
.of_match_table = meson_ge2d_match,
|
||||
|
||||
@@ -864,7 +864,7 @@ MODULE_DEVICE_TABLE(of, vpu_core_dt_match);
|
||||
|
||||
static struct platform_driver amphion_vpu_core_driver = {
|
||||
.probe = vpu_core_probe,
|
||||
.remove_new = vpu_core_remove,
|
||||
.remove = vpu_core_remove,
|
||||
.driver = {
|
||||
.name = "amphion-vpu-core",
|
||||
.of_match_table = vpu_core_dt_match,
|
||||
|
||||
@@ -227,7 +227,7 @@ MODULE_DEVICE_TABLE(of, vpu_dt_match);
|
||||
|
||||
static struct platform_driver amphion_vpu_driver = {
|
||||
.probe = vpu_probe,
|
||||
.remove_new = vpu_remove,
|
||||
.remove = vpu_remove,
|
||||
.driver = {
|
||||
.name = "amphion-vpu",
|
||||
.of_match_table = vpu_dt_match,
|
||||
|
||||
@@ -2226,7 +2226,7 @@ static struct platform_driver aspeed_video_driver = {
|
||||
.of_match_table = aspeed_video_of_match,
|
||||
},
|
||||
.probe = aspeed_video_probe,
|
||||
.remove_new = aspeed_video_remove,
|
||||
.remove = aspeed_video_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(aspeed_video_driver);
|
||||
|
||||
@@ -1367,7 +1367,7 @@ static struct platform_driver atmel_isi_driver = {
|
||||
.pm = &atmel_isi_dev_pm_ops,
|
||||
},
|
||||
.probe = atmel_isi_probe,
|
||||
.remove_new = atmel_isi_remove,
|
||||
.remove = atmel_isi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(atmel_isi_driver);
|
||||
|
||||
@@ -2724,7 +2724,7 @@ MODULE_DEVICE_TABLE(of, unicam_of_match);
|
||||
|
||||
static struct platform_driver unicam_driver = {
|
||||
.probe = unicam_probe,
|
||||
.remove_new = unicam_remove,
|
||||
.remove = unicam_remove,
|
||||
.driver = {
|
||||
.name = UNICAM_MODULE_NAME,
|
||||
.pm = pm_ptr(&unicam_pm_ops),
|
||||
|
||||
@@ -751,7 +751,7 @@ MODULE_DEVICE_TABLE(of, csi2rx_of_table);
|
||||
|
||||
static struct platform_driver csi2rx_driver = {
|
||||
.probe = csi2rx_probe,
|
||||
.remove_new = csi2rx_remove,
|
||||
.remove = csi2rx_remove,
|
||||
|
||||
.driver = {
|
||||
.name = "cdns-csi2rx",
|
||||
|
||||
@@ -644,7 +644,7 @@ static void csi2tx_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver csi2tx_driver = {
|
||||
.probe = csi2tx_probe,
|
||||
.remove_new = csi2tx_remove,
|
||||
.remove = csi2tx_remove,
|
||||
|
||||
.driver = {
|
||||
.name = "cdns-csi2tx",
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user