diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-09-18 13:34:10 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-21 14:01:00 +0200 |
| commit | 4f846b8b69fd0a114ebba076493ddb62efc9ce51 (patch) | |
| tree | 83f771aaed6c57a2e33c3dc90ec6e615893b29c2 | |
| parent | b045248399d0cd8b6188ce1a5b9d722709ad3ddc (diff) | |
| download | linux-next-4f846b8b69fd0a114ebba076493ddb62efc9ce51.tar.gz linux-next-4f846b8b69fd0a114ebba076493ddb62efc9ce51.zip | |
gpib: fmh_gpib: Replace dma_request_slave_channel() by dma_request_chan()
Replace dma_request_slave_channel() by dma_request_chan() as suggested
since the former is deprecated. With this, propagate all possible errors
to the caller.
Reviewed-by: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260918113727.1898998-7-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | drivers/gpib/fmh_gpib/fmh_gpib.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpib/fmh_gpib/fmh_gpib.c b/drivers/gpib/fmh_gpib/fmh_gpib.c index 5e10e9353fed..4ab9b0a317fd 100644 --- a/drivers/gpib/fmh_gpib/fmh_gpib.c +++ b/drivers/gpib/fmh_gpib/fmh_gpib.c @@ -1458,11 +1458,15 @@ static int fmh_gpib_attach_impl(struct gpib_board *board, const struct gpib_boar e_priv->irq = irq; if (acquire_dma) { - e_priv->dma_channel = dma_request_slave_channel(board->dev, "rxtx"); - if (!e_priv->dma_channel) { + struct dma_chan *tmp_chan; + + tmp_chan = dma_request_chan(board->dev, "rxtx"); + retval = PTR_ERR_OR_ZERO(tmp_chan); + if (retval) { dev_err(board->dev, "failed to acquire dma channel \"rxtx\".\n"); - return -EIO; + return retval; } + e_priv->dma_channel = tmp_chan; } /* * in the future we might want to know the half-fifo size |
