summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/st/stm32/stm32-dcmi.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-09-25 13:45:47 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-10-12 16:28:25 +0200
commitb8fc42dc065742bc68df6a61a2aff8cbe364fa17 (patch)
treefd5f5e193d2de778e6923f00da1b0f0fb7ce8d64 /drivers/media/platform/st/stm32/stm32-dcmi.c
parent2f88509db015dfe1180ddb23c4258f8a0b2b5d58 (diff)
downloadlinux-b8fc42dc065742bc68df6a61a2aff8cbe364fa17.tar.gz
linux-b8fc42dc065742bc68df6a61a2aff8cbe364fa17.tar.bz2
linux-b8fc42dc065742bc68df6a61a2aff8cbe364fa17.zip
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>
Diffstat (limited to 'drivers/media/platform/st/stm32/stm32-dcmi.c')
-rw-r--r--drivers/media/platform/st/stm32/stm32-dcmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c
index ff3331af9406..a28db89e4b50 100644
--- a/drivers/media/platform/st/stm32/stm32-dcmi.c
+++ b/drivers/media/platform/st/stm32/stm32-dcmi.c
@@ -2149,7 +2149,7 @@ static const struct dev_pm_ops dcmi_pm_ops = {
static struct platform_driver stm32_dcmi_driver = {
.probe = dcmi_probe,
- .remove_new = dcmi_remove,
+ .remove = dcmi_remove,
.driver = {
.name = DRV_NAME,
.of_match_table = of_match_ptr(stm32_dcmi_of_match),