Skip to content

Commit d05e626

Browse files
committed
Merge tag 'ata-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux
Pull ata updates from Damien Le Moal: - Cleanup the pxa PATA driver to use dma_request_chan() instead of the deprecated dma_request_slave_channel(). - Add Niklas as co-maintainer of the ata subsystem. * tag 'ata-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux: MAINTAINERS: Add Niklas Cassel as libata maintainer ata: pata_pxa: convert not to use dma_request_slave_channel()
2 parents 893e2f9 + fa7280e commit d05e626

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12145,9 +12145,10 @@ F: drivers/ata/sata_promise.*
1214512145

1214612146
LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)
1214712147
M: Damien Le Moal <dlemoal@kernel.org>
12148+
M: Niklas Cassel <cassel@kernel.org>
1214812149
L: linux-ide@vger.kernel.org
1214912150
S: Maintained
12150-
T: git git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata.git
12151+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux.git
1215112152
F: Documentation/ABI/testing/sysfs-ata
1215212153
F: Documentation/devicetree/bindings/ata/
1215312154
F: drivers/ata/

drivers/ata/pata_pxa.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,9 @@ static int pxa_ata_probe(struct platform_device *pdev)
274274
/*
275275
* Request the DMA channel
276276
*/
277-
data->dma_chan =
278-
dma_request_slave_channel(&pdev->dev, "data");
279-
if (!data->dma_chan)
280-
return -EBUSY;
277+
data->dma_chan = dma_request_chan(&pdev->dev, "data");
278+
if (IS_ERR(data->dma_chan))
279+
return PTR_ERR(data->dma_chan);
281280
ret = dmaengine_slave_config(data->dma_chan, &config);
282281
if (ret < 0) {
283282
dev_err(&pdev->dev, "dma configuration failed: %d\n", ret);

0 commit comments

Comments
 (0)