projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a0eb8f
)
phy: qcom-snps-femto-v2: use qcom_snps_hsphy_suspend/resume error code
author
Adrien Thierry
<athierry@redhat.com>
Thu, 29 Jun 2023 14:45:40 +0000
(10:45 -0400)
committer
Vinod Koul
<vkoul@kernel.org>
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 <athierry@redhat.com>
Link:
https://lore.kernel.org/r/20230629144542.14906-4-athierry@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c
patch
|
blob
|
history
diff --git
a/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c
b/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c
index
6170f8f
..
d0319be
100644
(file)
--- a/
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c
+++ b/
drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c
@@
-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,