Commit 6643e261 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: sound: pass correct device when creating a sound card

commit 98592c1f upstream.

This patch fixes the usage of the wrong struct device when calling
function snd_card_new.
Reported-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Fixes: 69c90cf1 ("staging: most: sound: call snd_card_new with struct device")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d0e289e4
......@@ -622,7 +622,7 @@ static int audio_probe_channel(struct most_interface *iface, int channel_id,
INIT_LIST_HEAD(&adpt->dev_list);
iface->priv = adpt;
list_add_tail(&adpt->list, &adpt_list);
ret = snd_card_new(&iface->dev, -1, "INIC", THIS_MODULE,
ret = snd_card_new(iface->driver_dev, -1, "INIC", THIS_MODULE,
sizeof(*channel), &adpt->card);
if (ret < 0)
goto err_free_adpt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment