projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0afde80
)
ALSA: cs5530: Replace deprecated PCI functions
author
Philipp Stanner
<phasta@kernel.org>
Fri, 4 Apr 2025 12:19:09 +0000
(14:19 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 7 Apr 2025 07:19:57 +0000
(09:19 +0200)
pcim_iomap_table() and pcim_iomap_regions() have been deprecated.
Replace them with pcim_iomap_region().
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link:
https://patch.msgid.link/20250404121911.85277-10-phasta@kernel.org
sound/pci/cs5530.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/cs5530.c
b/sound/pci/cs5530.c
index 93ff029e6583a0ba064dbf001f61136f9f733bae..532891e67c347a55f9f8b45f32f5893be6fa9922 100644
(file)
--- a/
sound/pci/cs5530.c
+++ b/
sound/pci/cs5530.c
@@
-91,11
+91,10
@@
static int snd_cs5530_create(struct snd_card *card,
chip->card = card;
chip->pci = pci;
-
err = pcim_iomap_regions(pci, 1 <<
0, "CS5530");
- if (
err < 0
)
- return
err
;
+
mem = pcim_iomap_region(pci,
0, "CS5530");
+ if (
IS_ERR(mem)
)
+ return
PTR_ERR(mem)
;
chip->pci_base = pci_resource_start(pci, 0);
- mem = pcim_iomap_table(pci)[0];
map = readw(mem + 0x18);
/* Map bits