From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8718DC43219 for ; Wed, 1 May 2019 06:40:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4D2122177B for ; Wed, 1 May 2019 06:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556692822; bh=EvPt0xdOxT2zSg5zeOTjdeCCukWIqEbkQDhVuV0NOaQ=; h=Subject:To:From:Date:List-ID:From; b=JWhIFRKQWDQo9uRXm2DMrEVWNDC/mxX4Tdv6Dol2Q/slmdyfO4kqls5VDuchB2yWh zWYMj5m4dtAE0zOK1wRY+gTrdtjL/hZ+Qut7NOkYhn6f5c8qNzgHjBsf2Exd1tUeiI KbqtilpM34ECPtv/YX0x0yd0tFeS0gbCxixqn4tg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725973AbfEAGkV (ORCPT ); Wed, 1 May 2019 02:40:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:36434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbfEAGkV (ORCPT ); Wed, 1 May 2019 02:40:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6739721783; Wed, 1 May 2019 06:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556692820; bh=EvPt0xdOxT2zSg5zeOTjdeCCukWIqEbkQDhVuV0NOaQ=; h=Subject:To:From:Date:From; b=r98WoAqvtVeTzaBesBhMltZ1qys5KEKbrk2GXV7S58Y8rV1KYzKTX3fNqnNZfIq/r naQF9h2MFz2RdjSMvlzwsAjtQfJnZpmNVrwNThe/cGRp0csNPukKO9UOLB3q2DnLId Xv2zguPrnMMQn9zB9hDbjW0/vfkPcMVEXexiBE8E= Subject: patch "staging: most: sound: pass correct device when creating a sound card" added to staging-next To: christian.gromm@microchip.com, erosca@de.adit-jv.com, gregkh@linuxfoundation.org, stable@vger.kernel.org From: Date: Wed, 01 May 2019 08:40:01 +0200 Message-ID: <1556692801168204@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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-next 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 also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. >From 98592c1faca82a9024a64e4ecead68b19f81c299 Mon Sep 17 00:00:00 2001 From: Christian Gromm 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. Reported-by: Eugeniu Rosca Signed-off-by: Christian Gromm Fixes: 69c90cf1b2fa ("staging: most: sound: call snd_card_new with struct device") Cc: stable Signed-off-by: Greg Kroah-Hartman --- 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 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; -- 2.21.0