.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Promise PATA TX2/TX4/TX2000/133 IDE driver for pdc20268 to pdc20277. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation; either version |
---|
7 | | - * 2 of the License, or (at your option) any later version. |
---|
8 | 4 | * |
---|
9 | 5 | * Ported to libata by: |
---|
10 | 6 | * Albert Lee <albertcc@tw.ibm.com> IBM Corporation |
---|
.. | .. |
---|
15 | 11 | * Author: Frank Tiernan (frankt@promise.com) |
---|
16 | 12 | * Released under terms of General Public License |
---|
17 | 13 | * |
---|
18 | | - * |
---|
19 | 14 | * libata documentation is available via 'make {ps|pdf}docs', |
---|
20 | 15 | * as Documentation/driver-api/libata.rst |
---|
21 | 16 | * |
---|
22 | 17 | * Hardware information only available under NDA. |
---|
23 | | - * |
---|
24 | 18 | */ |
---|
25 | 19 | #include <linux/kernel.h> |
---|
26 | 20 | #include <linux/module.h> |
---|
.. | .. |
---|
728 | 722 | return rc; |
---|
729 | 723 | host->iomap = pcim_iomap_table(pdev); |
---|
730 | 724 | |
---|
731 | | - rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK); |
---|
732 | | - if (rc) |
---|
733 | | - return rc; |
---|
734 | | - |
---|
735 | | - rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK); |
---|
| 725 | + rc = dma_set_mask_and_coherent(&pdev->dev, ATA_DMA_MASK); |
---|
736 | 726 | if (rc) |
---|
737 | 727 | return rc; |
---|
738 | 728 | |
---|