mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-22 20:30:58 +02:00
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:
committed by
CrazyCat
parent
c5ab1bec6a
commit
e8719007b8
@@ -1486,7 +1486,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);
|
||||
|
||||
|
Reference in New Issue
Block a user