| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * drivers/ata/sata_fsl.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * Li Yang <leoli@freescale.com> |
|---|
| 8 | 9 | * |
|---|
| 9 | 10 | * Copyright (c) 2006-2007, 2011-2012 Freescale Semiconductor, Inc. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 12 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 13 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 14 | | - * option) any later version. |
|---|
| 15 | | - * |
|---|
| 16 | 11 | */ |
|---|
| 17 | 12 | |
|---|
| 18 | 13 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 731 | 726 | if (!pp) |
|---|
| 732 | 727 | return -ENOMEM; |
|---|
| 733 | 728 | |
|---|
| 734 | | - mem = dma_zalloc_coherent(dev, SATA_FSL_PORT_PRIV_DMA_SZ, &mem_dma, |
|---|
| 735 | | - GFP_KERNEL); |
|---|
| 729 | + mem = dma_alloc_coherent(dev, SATA_FSL_PORT_PRIV_DMA_SZ, &mem_dma, |
|---|
| 730 | + GFP_KERNEL); |
|---|
| 736 | 731 | if (!mem) { |
|---|
| 737 | 732 | kfree(pp); |
|---|
| 738 | 733 | return -ENOMEM; |
|---|