hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/ata/sata_svw.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sata_svw.c - ServerWorks / Apple K2 SATA
34 *
....@@ -13,27 +14,10 @@
1314 * This driver probably works with non-Apple versions of the
1415 * Broadcom chipset...
1516 *
16
- *
17
- * This program is free software; you can redistribute it and/or modify
18
- * it under the terms of the GNU General Public License as published by
19
- * the Free Software Foundation; either version 2, or (at your option)
20
- * any later version.
21
- *
22
- * This program is distributed in the hope that it will be useful,
23
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
- * GNU General Public License for more details.
26
- *
27
- * You should have received a copy of the GNU General Public License
28
- * along with this program; see the file COPYING. If not, write to
29
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
30
- *
31
- *
3217 * libata documentation is available via 'make {ps|pdf}docs',
3318 * as Documentation/driver-api/libata.rst
3419 *
3520 * Hardware documentation available under NDA.
36
- *
3721 */
3822
3923 #include <linux/kernel.h>
....@@ -487,10 +471,7 @@
487471 ata_port_pbar_desc(ap, 5, offset, "port");
488472 }
489473
490
- rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK);
491
- if (rc)
492
- return rc;
493
- rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK);
474
+ rc = dma_set_mask_and_coherent(&pdev->dev, ATA_DMA_MASK);
494475 if (rc)
495476 return rc;
496477