Skip to content

Commit 692c9a4

Browse files
Tao Zhangmathieupoirier
authored andcommitted
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: 835d722 ("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]>
1 parent 8d81b2a commit 692c9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwtracing/coresight/coresight-cti-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static int cti_disable_hw(struct cti_drvdata *drvdata)
175175
coresight_disclaim_device_unlocked(csdev);
176176
CS_LOCK(drvdata->base);
177177
spin_unlock(&drvdata->spinlock);
178-
pm_runtime_put(dev);
178+
pm_runtime_put(dev->parent);
179179
return 0;
180180

181181
/* not disabled this call */

0 commit comments

Comments
 (0)