Unverified Commit 509455bf authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8632 phy: phy-mtk-tphy: Fix some resource leaks in mtk_phy_init()

parents 8343aff9 fc3a7b18
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -924,6 +924,8 @@ static int mtk_phy_init(struct phy *phy)
		break;
	default:
		dev_err(tphy->dev, "incompatible PHY type\n");
		clk_disable_unprepare(instance->ref_clk);
		clk_disable_unprepare(tphy->u3phya_ref);
		return -EINVAL;
	}