diff options
| author | Bjorn Andersson <[email protected]> | 2023-07-21 09:49:01 -0700 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2023-09-21 11:33:40 +0200 |
| commit | 95b0f3aa71eb09d067d89395fdb7f2dd87feae18 (patch) | |
| tree | 72468e8274d6d8fa9a2288f9d3497381d2dfaa41 | |
| parent | 16d568c8f646933710c980783d87d3f59a89b563 (diff) | |
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 <[email protected]>
Reviewed-by: Andrew Halaney <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
| -rw-r--r-- | drivers/soundwire/qcom.c | 2 |
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; } |