hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/ata/pata_cs5520.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * IDE tuning and bus mastering support for the CS5510/CS5520
34 * chipsets
....@@ -17,16 +18,6 @@
1718 * *** This driver is strictly experimental ***
1819 *
1920 * (c) Copyright Red Hat Inc 2002
20
- *
21
- * This program is free software; you can redistribute it and/or modify it
22
- * under the terms of the GNU General Public License as published by the
23
- * Free Software Foundation; either version 2, or (at your option) any
24
- * later version.
25
- *
26
- * This program is distributed in the hope that it will be useful, but
27
- * WITHOUT ANY WARRANTY; without even the implied warranty of
28
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29
- * General Public License for more details.
3021 *
3122 * Documentation:
3223 * Not publicly available.
....@@ -164,12 +155,8 @@
164155 return -ENODEV;
165156 }
166157
167
- if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) {
158
+ if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32))) {
168159 printk(KERN_ERR DRV_NAME ": unable to configure DMA mask.\n");
169
- return -ENODEV;
170
- }
171
- if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32))) {
172
- printk(KERN_ERR DRV_NAME ": unable to configure consistent DMA mask.\n");
173160 return -ENODEV;
174161 }
175162