Skip to contentSkip to conversation

media: s3c-camif: fix missing disable in tegra_adma_probe().

PATCH Superseded [email protected] 1 participant 1 message May 22, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: s3c-camif: fix missing disable in tegra_adma_probe().

From: Qiushi Wu <[email protected]>

"pm_runtime_enable()" was not handled by "pm_runtime_disable()" after a call of the function “pm_runtime_get_sync” failed. Thus move the jump target “err_pm” before calling pm_runtime_disable().

Fixes babde1c243b2 ("[media] V4L: Add driver for S3C24XX/S3C64XX SoC series camera interface")
---
 drivers/media/platform/s3c-camif/camif-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/s3c-camif/camif-core.c +1 -1
index c6fbcd7036d6..12ee49638f44 100644
@@ -500,8 +500,8 @@ static int s3c_camif_probe(struct platform_device *pdev)
 	camif_unregister_media_entities(camif);
 err_alloc:
 	pm_runtime_put(dev);
-	pm_runtime_disable(dev);
 err_pm:
+	pm_runtime_disable(dev);
 	camif_clk_put(camif);
 err_clk:
 	s3c_camif_unregister_subdev(camif);
Signature · 1 line
2.17.1