mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
phy: phy-mtk-tphy: remove the check of -ENOSYS
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>
This commit is contained in:
parent
6bf6d81c11
commit
3b6351a475
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue