Commit 3b6351a47594d1f97d63085b7dac9fbae1e7aabe

Authored by Chunfeng Yun
Committed by Tom Rini
1 parent 6bf6d81c11

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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/phy/phy-mtk-tphy.c
... ... @@ -204,9 +204,8 @@
204 204 struct mtk_phy_instance *instance = tphy->phys[phy->id];
205 205 int ret;
206 206  
207   - /* we may use a fixed-clock here */
208 207 ret = clk_enable(&instance->ref_clk);
209   - if (ret && ret != -ENOSYS)
  208 + if (ret)
210 209 return ret;
211 210  
212 211 switch (instance->type) {