diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2019-04-30 14:07:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-30 14:34:06 +0200 |
commit | 98592c1faca82a9024a64e4ecead68b19f81c299 (patch) | |
tree | c7de2046461b86c028c05a74698d0624b465813b /drivers/staging/most | |
parent | f998a1180e14d0a10d2ffeccec25779ace879c2a (diff) | |
download | linux-98592c1faca82a9024a64e4ecead68b19f81c299.tar.gz linux-98592c1faca82a9024a64e4ecead68b19f81c299.tar.bz2 linux-98592c1faca82a9024a64e4ecead68b19f81c299.zip |
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: 69c90cf1b2fa ("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>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/sound/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/sound/sound.c b/drivers/staging/most/sound/sound.c index 7c998673a6f8..342f390d68b3 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; |