diff options
author | Chunfeng Yun | 2020-01-09 11:35:09 +0800 |
---|---|---|
committer | Tom Rini | 2020-01-16 09:39:45 -0500 |
commit | 3b6351a47594d1f97d63085b7dac9fbae1e7aabe (patch) | |
tree | 60d29604ad9625c970412475dc89049d418ac83a /drivers | |
parent | 6bf6d81c1112af50492215416e656efd43d5436f (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/phy/phy-mtk-tphy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index 37014812567..c4fb404f203 100644 --- 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) { |