Message ID | 20240314055843.2625883-2-anshuman.khandual@arm.com |
---|---|
State | Accepted |
Commit | caa41c47dab7e1054f587e592ab21296e3a6781c |
Headers | show |
Series | coresight: Move remaining AMBA ACPI devices into platform driver | expand |
diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c index c2ca4a02dfce..06a9b94b8c13 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c @@ -2213,6 +2213,9 @@ static int etm4_probe_platform_dev(struct platform_device *pdev) ret = etm4_probe(&pdev->dev); pm_runtime_put(&pdev->dev); + if (ret) + pm_runtime_disable(&pdev->dev); + return ret; }