ALSA: virmidi: Allocate resources with device-managed APIs
authorTakashi Iwai <tiwai@suse.de>
Thu, 15 Jul 2021 07:59:35 +0000 (09:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Jul 2021 14:17:28 +0000 (16:17 +0200)
commited539fc3428c6901e668e9d71ce1ca78f28cc03f
tree8bcfd549779d6a4e8a34c1249c688ef09adaee47
parent854577ac2aea5cf4d8f48a841fd26e04cbac2b77
ALSA: virmidi: Allocate resources with device-managed APIs

This patch converts the card object management with devres as a clean
up.  The remove callback gets reduced by that.

This should give no user-visible functional changes.

Link: https://lore.kernel.org/r/20210715075941.23332-74-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/virmidi.c