aboutsummaryrefslogtreecommitdiff
path: root/drivers/soundwire/qcom.c
diff options
context:
space:
mode:
authorGravatar Bjorn Andersson <quic_bjorande@quicinc.com> 2023-07-21 09:49:01 -0700
committerGravatar Vinod Koul <vkoul@kernel.org> 2023-09-21 11:33:40 +0200
commit95b0f3aa71eb09d067d89395fdb7f2dd87feae18 (patch)
tree72468e8274d6d8fa9a2288f9d3497381d2dfaa41 /drivers/soundwire/qcom.c
parentsoundwire: qcom: handle command ignored interrupt (diff)
downloadlinux-95b0f3aa71eb09d067d89395fdb7f2dd87feae18.tar.gz
linux-95b0f3aa71eb09d067d89395fdb7f2dd87feae18.tar.bz2
linux-95b0f3aa71eb09d067d89395fdb7f2dd87feae18.zip
soundwire: qcom: Log clk_get("iface") failures
Failing to acquire the iface clock makes probing of the Qualcomm SoundWire driver fail without providing any indication to the user. Make the driver log the error to aid debugging system configuration issues. Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Andrew Halaney <ahalaney@redhat.com> Link: https://lore.kernel.org/r/20230721164901.2155287-1-quic_bjorande@quicinc.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/qcom.c')
-rw-r--r--drivers/soundwire/qcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c
index d0bb995a59ef..a1e2d6c98186 100644
--- a/drivers/soundwire/qcom.c
+++ b/drivers/soundwire/qcom.c
@@ -1562,7 +1562,7 @@ static int qcom_swrm_probe(struct platform_device *pdev)
ctrl->hclk = devm_clk_get(dev, "iface");
if (IS_ERR(ctrl->hclk)) {
- ret = PTR_ERR(ctrl->hclk);
+ ret = dev_err_probe(dev, PTR_ERR(ctrl->hclk), "unable to get iface clock\n");
goto err_init;
}