.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
---|
3 | 4 | * Copyright (c) by Takashi Iwai <tiwai@suse.de> |
---|
4 | 5 | * |
---|
5 | 6 | * EMU10K1 memory page allocation (PTB area) |
---|
6 | | - * |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, |
---|
14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | | - * GNU General Public License for more details. |
---|
17 | | - * |
---|
18 | | - * You should have received a copy of the GNU General Public License |
---|
19 | | - * along with this program; if not, write to the Free Software |
---|
20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | | - * |
---|
22 | 7 | */ |
---|
23 | 8 | |
---|
24 | 9 | #include <linux/pci.h> |
---|
.. | .. |
---|
402 | 387 | } |
---|
403 | 388 | |
---|
404 | 389 | return snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, |
---|
405 | | - snd_dma_pci_data(emu->pci), size, dmab); |
---|
| 390 | + &emu->pci->dev, size, dmab); |
---|
406 | 391 | } |
---|
407 | 392 | |
---|
408 | 393 | /* |
---|
.. | .. |
---|
492 | 477 | int page; |
---|
493 | 478 | |
---|
494 | 479 | dmab.dev.type = SNDRV_DMA_TYPE_DEV; |
---|
495 | | - dmab.dev.dev = snd_dma_pci_data(emu->pci); |
---|
| 480 | + dmab.dev.dev = &emu->pci->dev; |
---|
496 | 481 | |
---|
497 | 482 | for (page = first_page; page <= last_page; page++) { |
---|
498 | 483 | if (emu->page_ptr_table[page] == NULL) |
---|