Commit b4630215 authored by Dinghao Liu's avatar Dinghao Liu Committed by Mauro Carvalho Chehab

media: coda: Fix runtime PM imbalance in coda_probe

When coda_firmware_request() returns an error code,
a pairing runtime PM usage counter decrement is needed
to keep the counter balanced.
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent dafa3605
...@@ -3264,6 +3264,8 @@ static int coda_probe(struct platform_device *pdev) ...@@ -3264,6 +3264,8 @@ static int coda_probe(struct platform_device *pdev)
return 0; return 0;
err_alloc_workqueue: err_alloc_workqueue:
pm_runtime_disable(&pdev->dev);
pm_runtime_put_noidle(&pdev->dev);
destroy_workqueue(dev->workqueue); destroy_workqueue(dev->workqueue);
err_v4l2_register: err_v4l2_register:
v4l2_device_unregister(&dev->v4l2_dev); v4l2_device_unregister(&dev->v4l2_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment