ALSA: atiixp: Allocate resources with device-managed APIs
authorTakashi Iwai <tiwai@suse.de>
Thu, 15 Jul 2021 07:58:28 +0000 (09:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Jul 2021 14:16:37 +0000 (16:16 +0200)
commit86bde74dbf0944444aea43eb9e647f1ce16c7ade
tree730fd608611ae9e3e8309753f5b678211a8a9637
parent7835e0901e245aa8b83d7e2964f17088cb2e1f1e
ALSA: atiixp: Allocate resources with device-managed APIs

Like the previous patch, this patch converts the resource allocations
with device-managed API calls, so that we can reduce resource-free
calls.

The atiixp drivers are simpler than intel8x0, and even the irq can be
allocated with devres.

The end result is a good amount of code reduction.

Link: https://lore.kernel.org/r/20210715075941.23332-7-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/atiixp.c
sound/pci/atiixp_modem.c