提交 3b6351a4 编写于 作者: C Chunfeng Yun 提交者: Tom Rini

phy: phy-mtk-tphy: remove the check of -ENOSYS

No need check -ENOSYS anymore after add dummy_enable() for
fixed-clock.
Signed-off-by: NChunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NRyder Lee <ryder.lee@mediatek.com>
上级 6bf6d81c
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册