Commit 2390d458 authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Greg Kroah-Hartman

coresight: catu: Cleanup power management

Drop the power handle only if we were successful. Otherwise
the AMBA bus code would do the rest.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0bfc53b3
...@@ -557,8 +557,9 @@ static int catu_probe(struct amba_device *adev, const struct amba_id *id) ...@@ -557,8 +557,9 @@ static int catu_probe(struct amba_device *adev, const struct amba_id *id)
drvdata->csdev = coresight_register(&catu_desc); drvdata->csdev = coresight_register(&catu_desc);
if (IS_ERR(drvdata->csdev)) if (IS_ERR(drvdata->csdev))
ret = PTR_ERR(drvdata->csdev); ret = PTR_ERR(drvdata->csdev);
else
pm_runtime_put(&adev->dev);
out: out:
pm_runtime_put(&adev->dev);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment