hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/ata/sata_vsc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sata_vsc.c - Vitesse VSC7174 4 port DPA SATA
34 *
....@@ -9,29 +10,12 @@
910 *
1011 * Bits from Jeff Garzik, Copyright RedHat, Inc.
1112 *
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2, or (at your option)
16
- * any later version.
17
- *
18
- * This program is distributed in the hope that it will be useful,
19
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- * GNU General Public License for more details.
22
- *
23
- * You should have received a copy of the GNU General Public License
24
- * along with this program; see the file COPYING. If not, write to
25
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
26
- *
27
- *
2813 * libata documentation is available via 'make {ps|pdf}docs',
2914 * as Documentation/driver-api/libata.rst
3015 *
3116 * Vitesse hardware documentation presumably available under NDA.
3217 * Intel 31244 (same hardware interface) documentation presumably
3318 * available from http://developer.intel.com/
34
- *
3519 */
3620
3721 #include <linux/kernel.h>
....@@ -387,10 +371,7 @@
387371 /*
388372 * Use 32 bit DMA mask, because 64 bit address support is poor.
389373 */
390
- rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
391
- if (rc)
392
- return rc;
393
- rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
374
+ rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
394375 if (rc)
395376 return rc;
396377