]> Git Repo - linux.git/commitdiff
coresight: cti: Correct the parameter for pm_runtime_put
authorTao Zhang <[email protected]>
Thu, 19 Aug 2021 09:29:37 +0000 (17:29 +0800)
committerMathieu Poirier <[email protected]>
Wed, 27 Oct 2021 17:44:26 +0000 (11:44 -0600)
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]>
drivers/hwtracing/coresight/coresight-cti-core.c

index e2a3620cbf4891e41b1a23ca80b957c22cecb89c..8988b2ed2ea6f5d3f5fed1606d824d6bf6f1781f 100644 (file)
@@ -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 */
This page took 0.06032 seconds and 4 git commands to generate.