Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: phy-mtk-tphy: remove unused u3phya_ref clock

The u3phya_ref clock is already moved into sub-node, and
renamed as ref clock, no used anymore now, so remove it,
this can avoid confusion when support new platforms

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Chunfeng Yun and committed by
Kishon Vijay Abraham I
360f4344 657a9ede

-18
-18
drivers/phy/mediatek/phy-mtk-tphy.c
··· 312 312 struct mtk_tphy { 313 313 struct device *dev; 314 314 void __iomem *sif_base; /* only shared sif */ 315 - /* deprecated, use @ref_clk instead in phy instance */ 316 - struct clk *u3phya_ref; /* reference clock of usb3 anolog phy */ 317 315 const struct mtk_phy_pdata *pdata; 318 316 struct mtk_phy_instance **phys; 319 317 int nphys; ··· 919 921 struct mtk_tphy *tphy = dev_get_drvdata(phy->dev.parent); 920 922 int ret; 921 923 922 - ret = clk_prepare_enable(tphy->u3phya_ref); 923 - if (ret) { 924 - dev_err(tphy->dev, "failed to enable u3phya_ref\n"); 925 - return ret; 926 - } 927 - 928 924 ret = clk_prepare_enable(instance->ref_clk); 929 925 if (ret) { 930 926 dev_err(tphy->dev, "failed to enable ref_clk\n"); ··· 984 992 u2_phy_instance_exit(tphy, instance); 985 993 986 994 clk_disable_unprepare(instance->ref_clk); 987 - clk_disable_unprepare(tphy->u3phya_ref); 988 995 return 0; 989 996 } 990 997 ··· 1118 1127 } 1119 1128 } 1120 1129 1121 - /* it's deprecated, make it optional for backward compatibility */ 1122 - tphy->u3phya_ref = devm_clk_get_optional(dev, "u3phya_ref"); 1123 - if (IS_ERR(tphy->u3phya_ref)) 1124 - return PTR_ERR(tphy->u3phya_ref); 1125 - 1126 1130 tphy->src_ref_clk = U3P_REF_CLK; 1127 1131 tphy->src_coef = U3P_SLEW_RATE_COEF; 1128 1132 /* update parameters of slew rate calibrate if exist */ ··· 1163 1177 instance->index = port; 1164 1178 phy_set_drvdata(phy, instance); 1165 1179 port++; 1166 - 1167 - /* if deprecated clock is provided, ignore instance's one */ 1168 - if (tphy->u3phya_ref) 1169 - continue; 1170 1180 1171 1181 instance->ref_clk = devm_clk_get_optional(&phy->dev, "ref"); 1172 1182 if (IS_ERR(instance->ref_clk)) {