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

phy: rockchip-pcie: remove unused phy_rd_cfg function

clang with W=1 reports
drivers/phy/rockchip/phy-rockchip-pcie.c:122:19: error:
unused function 'phy_rd_cfg' [-Werror,-Wunused-function]
static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy,
^
This function is not used, so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230321122503.1783311-1-trix@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Tom Rix and committed by
Vinod Koul
64cdc036 623cb3e2

-15
-15
drivers/phy/rockchip/phy-rockchip-pcie.c
··· 119 119 PHY_CFG_WR_SHIFT)); 120 120 } 121 121 122 - static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, 123 - u32 addr) 124 - { 125 - u32 val; 126 - 127 - regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, 128 - HIWORD_UPDATE(addr, 129 - PHY_CFG_RD_MASK, 130 - PHY_CFG_ADDR_SHIFT)); 131 - regmap_read(rk_phy->reg_base, 132 - rk_phy->phy_data->pcie_status, 133 - &val); 134 - return val; 135 - } 136 - 137 122 static int rockchip_pcie_phy_power_off(struct phy *phy) 138 123 { 139 124 struct phy_pcie_instance *inst = phy_get_drvdata(phy);