driver: bdisp: add pm_runtime_disable in the error handling code
PATCH 1/1 driver: bdisp: add pm_runtime_disable in the error handling code
In the error handling code of bdisp_probe, it fails to invoke pm_runtime_disable in many error sites.
Fix this by adding pm_runtime_disable after pm_runtime_put.
Signed-off-by Dongliang Mu <[email protected]>
--- drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/platform/sti/bdisp/bdisp-v4l2.c +1 -0
@@ -1394,6 +1394,7 @@ static int bdisp_probe(struct platform_device *pdev)bdisp_hw_free_filters (bdisp->dev); err_pm:pm_runtime_put (dev); +pm_runtime_disable (dev); err_remove:bdisp_debugfs_remove (bdisp);v4l2_device_unregister (&bdisp->v4l2_dev);
Signature · 1 line
2.25.1