ALSA: rawmidi: Don't embed device
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Aug 2023 16:02:48 +0000 (18:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Aug 2023 07:24:08 +0000 (09:24 +0200)
commitea29a02fd802d8df8202819f0a50d4ebb960bb2a
tree6fb9fc708c0e8cbfbb25ab5c091922d1b8d3560a
parent897c8882df5875fe0bbc3e93ee8e9ba4a2c6ca0d
ALSA: rawmidi: Don't embed device

This patch detaches the struct device from the snd_rawmidi object by
allocating via snd_device_alloc(), just like done for other devices.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Tested-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20230816160252.23396-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/rawmidi.h
sound/core/rawmidi.c
sound/core/ump.c