Skip to content

Commit

Permalink
phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code
Browse files Browse the repository at this point in the history
[ Upstream commit 8932089 ]

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 <athierry@redhat.com>
Link: https://lore.kernel.org/r/20230629144542.14906-4-athierry@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
athierry1 authored and gregkh committed Sep 13, 2023
1 parent 2981ff2 commit 026e918
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c
Expand Up @@ -214,8 +214,7 @@ static int __maybe_unused qcom_snps_hsphy_runtime_suspend(struct device *dev)
if (!hsphy->phy_initialized)
return 0;

qcom_snps_hsphy_suspend(hsphy);
return 0;
return qcom_snps_hsphy_suspend(hsphy);
}

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

qcom_snps_hsphy_resume(hsphy);
return 0;
return qcom_snps_hsphy_resume(hsphy);
}

static int qcom_snps_hsphy_set_mode(struct phy *phy, enum phy_mode mode,
Expand Down

0 comments on commit 026e918

Please sign in to comment.