Skip to content

Commit 8932089

Browse files
athierry1vinodkoul
authored andcommitted
phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code
The return value from qcom_snps_hsphy_suspend/resume is not used. Make sure qcom_snps_hsphy_runtime_suspend/resume return this value as well. Signed-off-by: Adrien Thierry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 8a0eb8f commit 8932089

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ static int __maybe_unused qcom_snps_hsphy_runtime_suspend(struct device *dev)
214214
if (!hsphy->phy_initialized)
215215
return 0;
216216

217-
qcom_snps_hsphy_suspend(hsphy);
218-
return 0;
217+
return qcom_snps_hsphy_suspend(hsphy);
219218
}
220219

221220
static int __maybe_unused qcom_snps_hsphy_runtime_resume(struct device *dev)
@@ -225,8 +224,7 @@ static int __maybe_unused qcom_snps_hsphy_runtime_resume(struct device *dev)
225224
if (!hsphy->phy_initialized)
226225
return 0;
227226

228-
qcom_snps_hsphy_resume(hsphy);
229-
return 0;
227+
return qcom_snps_hsphy_resume(hsphy);
230228
}
231229

232230
static int qcom_snps_hsphy_set_mode(struct phy *phy, enum phy_mode mode,

0 commit comments

Comments
 (0)