phy: rockchip-pcie: remove unused phy_rd_cfg function
authorTom Rix <trix@redhat.com>
Tue, 21 Mar 2023 12:25:03 +0000 (08:25 -0400)
committerVinod Koul <vkoul@kernel.org>
Fri, 31 Mar 2023 13:53:13 +0000 (19:23 +0530)
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>
drivers/phy/rockchip/phy-rockchip-pcie.c

index 75216091d90121c6a3a29cbeee51e76bc63c8a3c..8234b83fdd88c012fdd92f567b3423cfac650036 100644 (file)
@@ -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);