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: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0bfc53b30e
commit
2390d45864
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user