]> Git Repo - linux.git/commitdiff
phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code
authorAdrien Thierry <[email protected]>
Thu, 29 Jun 2023 14:45:40 +0000 (10:45 -0400)
committerVinod Koul <[email protected]>
Wed, 12 Jul 2023 16:57:03 +0000 (22:27 +0530)
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]>
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c

index 6170f8fd118e29f885af7a241a8a5d8557b6a7cc..d0319bee01c0fb3be7a26b5627cd8bf29d76424e 100644 (file)
@@ -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)
@@ -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,
This page took 0.057414 seconds and 4 git commands to generate.