All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] i2c: imx: fix dma_request_chan error handling
@ 2019-01-16 11:28 ` Laurentiu Tudor
  0 siblings, 0 replies; 11+ messages in thread
From: Laurentiu Tudor @ 2019-01-16 11:28 UTC (permalink / raw)
  To: linux-i2c, linux-imx, shawnguo, s.hauer, kernel, wsa
  Cc: linux-arm-kernel, linux-kernel, fabio.estevam, leoyang.li,
	Laurentiu Tudor

Use the correct error pointer when extracting the error code.

Fixes: ea1e5f176e97 ("i2c: imx: notify about real errors on dma i2c_imx_dma_request")
Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
---
 drivers/i2c/busses/i2c-imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 09b124547669..42fed40198a0 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -287,7 +287,7 @@ static int i2c_imx_dma_request(struct imx_i2c_struct *i2c_imx,
 
 	dma->chan_tx = dma_request_chan(dev, "tx");
 	if (IS_ERR(dma->chan_tx)) {
-		ret = PTR_ERR(dma->chan_rx);
+		ret = PTR_ERR(dma->chan_tx);
 		if (ret != -ENODEV && ret != -EPROBE_DEFER)
 			dev_err(dev, "can't request DMA tx channel (%d)\n", ret);
 		goto fail_al;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-01-25  9:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 11:28 [PATCH v2 1/2] i2c: imx: fix dma_request_chan error handling Laurentiu Tudor
2019-01-16 11:28 ` Laurentiu Tudor
2019-01-16 11:28 ` [PATCH v2 2/2] i2c: imx: defer probing on dma channel request Laurentiu Tudor
2019-01-16 11:28   ` Laurentiu Tudor
2019-01-16 16:47 ` [PATCH v2 1/2] i2c: imx: fix dma_request_chan error handling Uwe Kleine-König
2019-01-16 16:47   ` Uwe Kleine-König
2019-01-22 22:51 ` Wolfram Sang
2019-01-22 22:51   ` Wolfram Sang
2019-01-25  9:20   ` Laurentiu Tudor
2019-01-25  9:20     ` Laurentiu Tudor
2019-01-25  9:20     ` Laurentiu Tudor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.