mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
staging: most: sound: pass correct device when creating a sound card
This patch fixes the usage of the wrong struct device when calling
function snd_card_new.
Reported-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Fixes: 69c90cf1b2
("staging: most: sound: call snd_card_new with struct device")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f998a1180e
commit
98592c1fac
@ -613,7 +613,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;
|
||||
|
Loading…
Reference in New Issue
Block a user