hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/ata/pata_pdc2027x.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * 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.
84 *
95 * Ported to libata by:
106 * Albert Lee <albertcc@tw.ibm.com> IBM Corporation
....@@ -15,12 +11,10 @@
1511 * Author: Frank Tiernan (frankt@promise.com)
1612 * Released under terms of General Public License
1713 *
18
- *
1914 * libata documentation is available via 'make {ps|pdf}docs',
2015 * as Documentation/driver-api/libata.rst
2116 *
2217 * Hardware information only available under NDA.
23
- *
2418 */
2519 #include <linux/kernel.h>
2620 #include <linux/module.h>
....@@ -728,11 +722,7 @@
728722 return rc;
729723 host->iomap = pcim_iomap_table(pdev);
730724
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);
736726 if (rc)
737727 return rc;
738728