.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * sata_vsc.c - Vitesse VSC7174 4 port DPA SATA |
---|
3 | 4 | * |
---|
.. | .. |
---|
9 | 10 | * |
---|
10 | 11 | * Bits from Jeff Garzik, Copyright RedHat, Inc. |
---|
11 | 12 | * |
---|
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 | | - * |
---|
28 | 13 | * libata documentation is available via 'make {ps|pdf}docs', |
---|
29 | 14 | * as Documentation/driver-api/libata.rst |
---|
30 | 15 | * |
---|
31 | 16 | * Vitesse hardware documentation presumably available under NDA. |
---|
32 | 17 | * Intel 31244 (same hardware interface) documentation presumably |
---|
33 | 18 | * available from http://developer.intel.com/ |
---|
34 | | - * |
---|
35 | 19 | */ |
---|
36 | 20 | |
---|
37 | 21 | #include <linux/kernel.h> |
---|
.. | .. |
---|
387 | 371 | /* |
---|
388 | 372 | * Use 32 bit DMA mask, because 64 bit address support is poor. |
---|
389 | 373 | */ |
---|
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)); |
---|
394 | 375 | if (rc) |
---|
395 | 376 | return rc; |
---|
396 | 377 | |
---|