media: ti: vpe: Add missing v4l2_device_unregister in vip_remove()
Subsystems (2)
PATCH 1/1 media: ti: vpe: Add missing v4l2_device_unregister in vip_remove()
The v4l2_device is registered during probe but was not being unregistered during remove. Add the missing v4l2_device_unregister() call to properly clean up resources.
Fixes fc2873aa4a21 ("media: ti: vpe: Add the VIP driver")
Signed-off-by Felix Gu <[email protected]>
--- drivers/media/platform/ti/vpe/vip.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/platform/ti/vpe/vip.c +1 -0
@@ -3641,6 +3641,7 @@ static void vip_remove(struct platform_device *pdev) }v4l2_ctrl_handler_free (&shared->ctrl_handler); +v4l2_device_unregister (&shared->v4l2_dev);pm_runtime_put_sync (&pdev->dev);pm_runtime_disable (&pdev->dev);
---
base-commit: 3fa5e5702a82d259897bd7e209469bc06368bf31
change-id: 20260301-vip-c6e932239447
Best regards,
Signature · 1 line
Felix Gu <[email protected]>
Quoted 7 lines · Felix Gu
The
v4l2_deviceis registered during probe but was not being unregistered during remove. Add the missingv4l2_device_unregister()call to properly clean up resources.Fixes fc2873aa4a21 ("media: ti: vpe: Add the VIP driver")Signed-off-by Felix Gu <[email protected]>---
Reviewed-by Yemike Abhilash Chandra <[email protected]>
Quoted 21 lines
drivers/media/platform/ti/vpe/vip.c | 1 + 1 file changed, 1 insertion(+)drivers/media/platform/ti/vpe/vip.c +1
-1@@ -3641,6 +3641,7 @@ static void vip_remove(struct platform_device *pdev) }v4l2_ctrl_handler_free (&shared->ctrl_handler); +v4l2_device_unregister (&shared->v4l2_dev);pm_runtime_put_sync (&pdev->dev);pm_runtime_disable (&pdev->dev); ---base-commit:
3fa5e5702a82d259897bd7e209469bc06368bf31
change-id: 20260301-vip-c6e932239447Best regards,