Skip to contentSkip to conversation

patch "staging: most: sound: pass correct device when creating a sound card" added to staging-testing

PATCH [email protected] 1 participant 1 message Apr 30, 2019

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

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

to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-testing branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will be merged to the staging-next branch sometime soon, after it passes testing, and the merge window is open.

If you have any questions about this process, please let me know.

From 98592c1faca82a9024a64e4ecead68b19f81c299 Mon Sep 17 00:00:00 2001
From: Christian Gromm <[email protected]>
Date: Tue, 30 Apr 2019 14:07:48 +0200
Subject: 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.

Fixes 69c90cf1b2fa ("staging: most: sound: call snd_card_new with struct device")
Cc stable <[email protected]>
---
 drivers/staging/most/sound/sound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/most/sound/sound.c +1 -1
index 7c998673a6f8..342f390d68b3 100644
@@ -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;
Signature · 1 line
2.21.0