mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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>
This commit is contained in:
parent
16d568c8f6
commit
95b0f3aa71
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user