phy: rockchip-pcie: Remove the unused function phy_wr_cfg()
Subsystems (2)
PATCH 1/1 phy: rockchip-pcie: Remove the unused function phy_wr_cfg()
The function phy_wr_cfg is defined in the phy-rockchip-pcie.c file, but not called elsewhere, so remove this unused function.
drivers/phy/rockchip/phy-rockchip-pcie.c:122:19: warning: unused function 'phy_rd_cfg'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/phy/rockchip/phy-rockchip-pcie.c | 15 --------------- 1 file changed, 15 deletions(-)
drivers/phy/rockchip/phy-rockchip-pcie.c +0 -15
@@ -119,21 +119,6 @@ static inline void phy_wr_cfg(struct rockchip_pcie_phy *rk_phy, PHY_CFG_WR_SHIFT)); } -static inline u32 phy_rd_cfg (struct rockchip_pcie_phy *rk_phy, -u32 addr) -{ -u32 val; - -regmap_write (rk_phy->reg_base, rk_phy->phy_data->pcie_conf, -HIWORD_UPDATE (addr, -PHY_CFG_RD_MASK , -PHY_CFG_ADDR_SHIFT )); -regmap_read (rk_phy->reg_base, - rk_phy->phy_data->pcie_status, - &val); -return val; -} -static int rockchip_pcie_phy_power_off (struct phy *phy) {struct phy_pcie_instance *inst =phy_get_drvdata (phy);
Signature · 1 line
2.20.1.7.g153144c