| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /****************************************************************************** |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | AudioScience HPI driver |
|---|
| 4 | 5 | Copyright (C) 1997-2012 AudioScience Inc. <support@audioscience.com> |
|---|
| 5 | 6 | |
|---|
| 6 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - it under the terms of version 2 of the GNU General Public License as |
|---|
| 8 | | - published by the Free Software Foundation; |
|---|
| 9 | | - |
|---|
| 10 | | - This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - GNU General Public License for more details. |
|---|
| 14 | | - |
|---|
| 15 | | - You should have received a copy of the GNU General Public License |
|---|
| 16 | | - along with this program; if not, write to the Free Software |
|---|
| 17 | | - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 18 | 7 | |
|---|
| 19 | 8 | HPI Operating System function implementation for Linux |
|---|
| 20 | 9 | |
|---|
| .. | .. |
|---|
| 49 | 38 | /*?? any benefit in using managed dmam_alloc_coherent? */ |
|---|
| 50 | 39 | p_mem_area->vaddr = |
|---|
| 51 | 40 | dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle, |
|---|
| 52 | | - GFP_DMA32 | GFP_KERNEL); |
|---|
| 41 | + GFP_KERNEL); |
|---|
| 53 | 42 | |
|---|
| 54 | 43 | if (p_mem_area->vaddr) { |
|---|
| 55 | 44 | HPI_DEBUG_LOG(DEBUG, "allocated %d bytes, dma 0x%x vma %p\n", |
|---|