aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Zhang <[email protected]>2021-08-19 17:29:37 +0800
committerMathieu Poirier <[email protected]>2021-10-27 11:44:26 -0600
commit692c9a499b286ea478f41b23a91fe3873b9e1326 (patch)
tree9f80c077395167b78aa7ada8e7d727a19bf14801
parent8d81b2a38ddfc4b03662d2359765648c8b4cc73c (diff)
coresight: cti: Correct the parameter for pm_runtime_put
The input parameter of the function pm_runtime_put should be the same in the function cti_enable_hw and cti_disable_hw. The correct parameter to use here should be dev->parent. Signed-off-by: Tao Zhang <[email protected]> Reviewed-by: Leo Yan <[email protected]> Fixes: 835d722ba10a ("coresight: cti: Initial CoreSight CTI Driver") Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
-rw-r--r--drivers/hwtracing/coresight/coresight-cti-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-cti-core.c b/drivers/hwtracing/coresight/coresight-cti-core.c
index e2a3620cbf48..8988b2ed2ea6 100644
--- a/drivers/hwtracing/coresight/coresight-cti-core.c
+++ b/drivers/hwtracing/coresight/coresight-cti-core.c
@@ -175,7 +175,7 @@ static int cti_disable_hw(struct cti_drvdata *drvdata)
coresight_disclaim_device_unlocked(csdev);
CS_LOCK(drvdata->base);
spin_unlock(&drvdata->spinlock);
- pm_runtime_put(dev);
+ pm_runtime_put(dev->parent);
return 0;
/* not disabled this call */