Commit c60bd968 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Wolfram Sang

i2c: qcom-geni: Use dev_err_probe() for GPI DMA error

The GPI DMA engine driver can be compiled as a module, in which case the
likely probe deferral "error" shows up in the kernel log. Switch to
using dev_err_probe() to silence this warning and to ensure that
"devices_deferred" in debugfs carries this information.
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 39c02572
...@@ -843,10 +843,8 @@ static int geni_i2c_probe(struct platform_device *pdev) ...@@ -843,10 +843,8 @@ static int geni_i2c_probe(struct platform_device *pdev)
/* FIFO is disabled, so we can only use GPI DMA */ /* FIFO is disabled, so we can only use GPI DMA */
gi2c->gpi_mode = true; gi2c->gpi_mode = true;
ret = setup_gpi_dma(gi2c); ret = setup_gpi_dma(gi2c);
if (ret) { if (ret)
dev_err(dev, "Failed to setup GPI DMA mode:%d ret\n", ret); return dev_err_probe(dev, ret, "Failed to setup GPI DMA mode\n");
return ret;
}
dev_dbg(dev, "Using GPI DMA mode for I2C\n"); dev_dbg(dev, "Using GPI DMA mode for I2C\n");
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment