* [PATCH v2] staging: most: sound: pass correct device when creating a sound card
@ 2019-04-30 12:07 Christian Gromm
2019-04-30 12:32 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Christian Gromm @ 2019-04-30 12:07 UTC (permalink / raw)
To: gregkh; +Cc: Christian Gromm, driverdev-devel, erosca
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: 69c90cf1b2fa ("staging: most: sound: call snd_card_new with struct device")
Cc: stable <stable@vger.kernel.org>
---
v2: add Fixes tag to s-o-b area
drivers/staging/most/sound/sound.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/most/sound/sound.c b/drivers/staging/most/sound/sound.c
index 7c99867..342f390 100644
--- a/drivers/staging/most/sound/sound.c
+++ b/drivers/staging/most/sound/sound.c
@@ -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;
--
2.7.4
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] staging: most: sound: pass correct device when creating a sound card
2019-04-30 12:07 [PATCH v2] staging: most: sound: pass correct device when creating a sound card Christian Gromm
@ 2019-04-30 12:32 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2019-04-30 12:32 UTC (permalink / raw)
To: Christian Gromm; +Cc: driverdev-devel, erosca
On Tue, Apr 30, 2019 at 02:07:48PM +0200, Christian Gromm wrote:
> 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: commit 69c90cf1b2faf5fa08fe5e18e4b47b044474506e
Nit, the proper format for this would be:
Fixes: 69c90cf1b2fa ("staging: most: sound: call snd_card_new with struct device")
and that can be gotten with this git line:
git show -s --abbrev-commit --abbrev=12 --pretty=format:"Fixes: %h (\"%s\")%n"
I think it's documented somewhere in Documentation...
Anyway, I'll fix this up when applying it, thanks.
Also, I'll tag it for stable backports, as it should go back to 4.18+
thanks,
greg k-h
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-30 12:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-30 12:07 [PATCH v2] staging: most: sound: pass correct device when creating a sound card Christian Gromm
2019-04-30 12:32 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.