]> git.itanic.dy.fi Git - linux-stable/commit
ata: pata_pxa: convert not to use dma_request_slave_channel()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 18 Nov 2023 08:42:07 +0000 (09:42 +0100)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 20 Nov 2023 00:28:25 +0000 (09:28 +0900)
commit804901fdd637c7af8b767c329fd84aa0d3d617ec
treedbe3056211a29c47216a2603df0c6ad6312a99a4
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
ata: pata_pxa: convert not to use dma_request_slave_channel()

dma_request_slave_channel() is deprecated. dma_request_chan() should
be used directly instead.

Switch to the preferred function and update the error handling accordingly.
While at it, also propagate the error code that is now available.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/pata_pxa.c