From 9542a206ae8ed6bb0064ae531b763d7b0bb8ec2f Mon Sep 17 00:00:00 2001 From: Can Guo Date: Tue, 20 Aug 2019 00:55:21 -0700 Subject: [PATCH] phy: qcom-ufs: remove warnings for optional clocks tx_iface_clk and rx_iface_clk does not exist in newer version of ufs-phy HW, hence remove the missing clk warnings for them. Change-Id: Ic8dd3e9521159ce8da064da38cfa12e75f07209f Signed-off-by: Venkat Gopalakrishnan [cang@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Can Guo --- drivers/phy/qualcomm/phy-qcom-ufs.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-ufs.c b/drivers/phy/qualcomm/phy-qcom-ufs.c index 5baa68ba2401..d6789c5161c7 100644 --- a/drivers/phy/qualcomm/phy-qcom-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-ufs.c @@ -181,20 +181,15 @@ int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common) * tx_iface_clk does not exist in newer version of ufs-phy HW, * so don't return error if it is not found */ - err = ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk", - &phy_common->tx_iface_clk); - if (err) - dev_dbg(phy_common->dev, "%s: failed to get tx_iface_clk\n", - __func__); + __ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk", + &phy_common->tx_iface_clk, false); + /* * rx_iface_clk does not exist in newer version of ufs-phy HW, * so don't return error if it is not found */ - err = ufs_qcom_phy_clk_get(phy_common->dev, "rx_iface_clk", - &phy_common->rx_iface_clk); - if (err) - dev_dbg(phy_common->dev, "%s: failed to get rx_iface_clk\n", - __func__); + __ufs_qcom_phy_clk_get(phy_common->dev, "rx_iface_clk", + &phy_common->rx_iface_clk, false); skip_txrx_clk: err = ufs_qcom_phy_clk_get(phy_common->dev, "ref_clk_src",