mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "coresight: cti: Correct checking return value of device resume"
This commit is contained in:
commit
1affd44480
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
|
@ -374,7 +374,7 @@ int coresight_cti_map_trigin(struct coresight_cti *cti, int trig, int ch)
|
|||
*/
|
||||
if (drvdata->refcnt == 0) {
|
||||
ret = pm_runtime_get_sync(drvdata->dev);
|
||||
if (ret)
|
||||
if (ret < 0)
|
||||
goto err1;
|
||||
ret = coresight_enable_reg_clk(drvdata->csdev);
|
||||
if (ret)
|
||||
|
|
@ -465,7 +465,7 @@ int coresight_cti_map_trigout(struct coresight_cti *cti, int trig, int ch)
|
|||
*/
|
||||
if (drvdata->refcnt == 0) {
|
||||
ret = pm_runtime_get_sync(drvdata->dev);
|
||||
if (ret)
|
||||
if (ret < 0)
|
||||
goto err1;
|
||||
ret = coresight_enable_reg_clk(drvdata->csdev);
|
||||
if (ret)
|
||||
|
|
@ -1459,7 +1459,7 @@ static int cti_init_save(struct cti_drvdata *drvdata,
|
|||
}
|
||||
if (drvdata->cti_save && !drvdata->cti_hwclk) {
|
||||
ret = pm_runtime_get_sync(drvdata->dev);
|
||||
if (ret)
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue