media: Switch back to struct platform_driver::remove()

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/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:
Uwe Kleine-König
2024-09-25 13:45:47 +02:00
committed by CrazyCat
parent c5ab1bec6a
commit e8719007b8
2 changed files with 2 additions and 2 deletions

View File

@@ -1486,7 +1486,7 @@ static struct platform_driver rtl2832_sdr_driver = {
.name = "rtl2832_sdr", .name = "rtl2832_sdr",
}, },
.probe = rtl2832_sdr_probe, .probe = rtl2832_sdr_probe,
.remove_new = rtl2832_sdr_remove, .remove = rtl2832_sdr_remove,
}; };
module_platform_driver(rtl2832_sdr_driver); module_platform_driver(rtl2832_sdr_driver);

View File

@@ -531,7 +531,7 @@ static struct platform_driver zd1301_demod_driver = {
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
.probe = zd1301_demod_probe, .probe = zd1301_demod_probe,
.remove_new = zd1301_demod_remove, .remove = zd1301_demod_remove,
}; };
module_platform_driver(zd1301_demod_driver); module_platform_driver(zd1301_demod_driver);