hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/ata/sata_sx4.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sata_sx4.c - Promise SATA
34 *
....@@ -7,27 +8,10 @@
78 *
89 * Copyright 2003-2004 Red Hat, Inc.
910 *
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation; either version 2, or (at your option)
14
- * any later version.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with this program; see the file COPYING. If not, write to
23
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24
- *
25
- *
2611 * libata documentation is available via 'make {ps|pdf}docs',
2712 * as Documentation/driver-api/libata.rst
2813 *
2914 * Hardware documentation available under NDA.
30
- *
3115 */
3216
3317 /*
....@@ -685,7 +669,7 @@
685669 case ATA_PROT_NODATA:
686670 if (qc->tf.flags & ATA_TFLAG_POLLING)
687671 break;
688
- /*FALLTHROUGH*/
672
+ fallthrough;
689673 case ATA_PROT_DMA:
690674 pdc20621_packet_start(qc);
691675 return 0;
....@@ -1488,10 +1472,7 @@
14881472 }
14891473
14901474 /* configure and activate */
1491
- rc = dma_set_mask(&pdev->dev, ATA_DMA_MASK);
1492
- if (rc)
1493
- return rc;
1494
- rc = dma_set_coherent_mask(&pdev->dev, ATA_DMA_MASK);
1475
+ rc = dma_set_mask_and_coherent(&pdev->dev, ATA_DMA_MASK);
14951476 if (rc)
14961477 return rc;
14971478