From: Chunfeng Yun Date: Thu, 9 Jan 2020 03:35:09 +0000 (+0800) Subject: phy: phy-mtk-tphy: remove the check of -ENOSYS X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=3b6351a47594d1f97d63085b7dac9fbae1e7aabe;p=u-boot.git 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 Reviewed-by: Simon Glass Reviewed-by: Ryder Lee --- diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index 3701481256..c4fb404f20 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) {