| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * sata_svw.c - ServerWorks / Apple K2 SATA |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 13 | 14 | * This driver probably works with non-Apple versions of the |
|---|
| 14 | 15 | * Broadcom chipset... |
|---|
| 15 | 16 | * |
|---|
| 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 | | - * |
|---|
| 32 | 17 | * libata documentation is available via 'make {ps|pdf}docs', |
|---|
| 33 | 18 | * as Documentation/driver-api/libata.rst |
|---|
| 34 | 19 | * |
|---|
| 35 | 20 | * Hardware documentation available under NDA. |
|---|
| 36 | | - * |
|---|
| 37 | 21 | */ |
|---|
| 38 | 22 | |
|---|
| 39 | 23 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 487 | 471 | ata_port_pbar_desc(ap, 5, offset, "port"); |
|---|
| 488 | 472 | } |
|---|
| 489 | 473 | |
|---|
| 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); |
|---|
| 494 | 475 | if (rc) |
|---|
| 495 | 476 | return rc; |
|---|
| 496 | 477 | |
|---|