projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf6d81
)
phy: phy-mtk-tphy: remove the check of -ENOSYS
author
Chunfeng Yun
<chunfeng.yun@mediatek.com>
Thu, 9 Jan 2020 03:35:09 +0000
(11:35 +0800)
committer
Tom Rini
<trini@konsulko.com>
Thu, 16 Jan 2020 14:39:45 +0000
(09:39 -0500)
No need check -ENOSYS anymore after add dummy_enable() for
fixed-clock.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ryder Lee <ryder.lee@mediatek.com>
drivers/phy/phy-mtk-tphy.c
patch
|
blob
|
history
diff --git
a/drivers/phy/phy-mtk-tphy.c
b/drivers/phy/phy-mtk-tphy.c
index 37014812567d6582da5bb923cade55b31d55474f..c4fb404f203f957872d72520ba99e9afac2d6519 100644
(file)
--- a/
drivers/phy/phy-mtk-tphy.c
+++ b/
drivers/phy/phy-mtk-tphy.c
@@
-204,9
+204,8
@@
static int mtk_phy_init(struct phy *phy)
struct mtk_phy_instance *instance = tphy->phys[phy->id];
int ret;
- /* we may use a fixed-clock here */
ret = clk_enable(&instance->ref_clk);
- if (ret
&& ret != -ENOSYS
)
+ if (ret)
return ret;
switch (instance->type) {