hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/ata/sata_sil.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sata_sil.c - Silicon Image SATA
34 *
....@@ -8,22 +9,6 @@
89 * Copyright 2003-2005 Red Hat, Inc.
910 * Copyright 2003 Benjamin Herrenschmidt
1011 *
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation; either version 2, or (at your option)
15
- * any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program; see the file COPYING. If not, write to
24
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
25
- *
26
- *
2712 * libata documentation is available via 'make {ps|pdf}docs',
2813 * as Documentation/driver-api/libata.rst
2914 *
....@@ -31,7 +16,6 @@
3116 * http://gkernel.sourceforge.net/specs/sii/3112A_SiI-DS-0095-B2.pdf.bz2
3217 *
3318 * Other errata and documentation available under NDA.
34
- *
3519 */
3620
3721 #include <linux/kernel.h>
....@@ -775,10 +759,7 @@
775759 return rc;
776760 host->iomap = pcim_iomap_table(pdev);
777761
778
- rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK);
779
- if (rc)
780
- return rc;
781
- rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK);
762
+ rc = dma_set_mask_and_coherent(&pdev->dev, ATA_DMA_MASK);
782763 if (rc)
783764 return rc;
784765