Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp406979pxb; Wed, 3 Feb 2021 08:13:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJ5WxwUkrcPLQwEU8foz2QCXwvnKcU3CPKVTagTML0oYIvfOJ+XKf02AxHahDSa9fOVjjv X-Received: by 2002:a17:907:7347:: with SMTP id dq7mr4002899ejc.385.1612368789667; Wed, 03 Feb 2021 08:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612368789; cv=none; d=google.com; s=arc-20160816; b=NgSpzpl+zpPxyuUHzjDDZsd/W8m4+ZcJ2XRGyUZC8tRCBn9//Dxc4FAP6BvV+AauP9 VhB3VdT3KbbKusaeZlHhJnBqwUOVZo5gBdlOowOXh1Dk276A7TREUgIiknu/22ILKuF9 Ps2Oc37bS7eyARvqDfU+s91cnZJ9ksy0UR2wE9cq4+7cY/HwyFt4k1v2pG1xCEntwzSC nv8WgdYhfDQ7r8cXv55mQLt5XNEtOuxHBS4lHzixF4Ctc6qpOUqMQ3GWBED+WeRISiaW dkjHupDfpYIUuXwZiFTtlLkdDPk9CRTdBYpTuLZTJxeUJ+7Vg8ks6rH9l2+unVdZDFvA aTNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=SdJlxnAHDjMLxiQMLKNnQgJIuXfMEd/CIAOFoyE3phQ=; b=chb4VAyYa2jMStj17ENSm6K2AcM9y4y8ToYNe1fQeD/cNTKEMbBYOxFXJuuNObGog1 V+uCdiYS/UQ0c+O6MVUh//wPbEg8KzZxcxohfUut0UIQPj2B/gYRIRoWa2Fst+fS2gqg rLwzar+kMJ7YwZOptg4WjZLneX3wjpd/XZveI5pmgVIC/jwoBBpeb2lvpB/V3z1UKLZc IURt1RHSgEn5eH/9VTwk+pqxNBt2LEu0nl5vg7/lztMl5k+STFLJpnaHo2s8ixrF7TJE c3IxG41EpTA1uQCzbPGAFIk/TsPkv4dhll/s6qLfdp72+xmRcKqBPQNI5U7/wbW3oM8E 6+HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Z2qdRg10; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si1477813edz.246.2021.02.03.08.12.37; Wed, 03 Feb 2021 08:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=Z2qdRg10; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234700AbhBCQL0 (ORCPT + 99 others); Wed, 3 Feb 2021 11:11:26 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:4638 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234766AbhBCQKq (ORCPT ); Wed, 3 Feb 2021 11:10:46 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 03 Feb 2021 08:09:58 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 3 Feb 2021 16:09:58 +0000 Received: from audio.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Wed, 3 Feb 2021 16:09:55 +0000 From: Sameer Pujar To: CC: , , , , , , , Sameer Pujar Subject: [PATCH 1/2] ASoC: audio-graph: Export graph_remove() function Date: Wed, 3 Feb 2021 21:39:34 +0530 Message-ID: <1612368575-25991-2-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1612368575-25991-1-git-send-email-spujar@nvidia.com> References: <1612368575-25991-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612368598; bh=SdJlxnAHDjMLxiQMLKNnQgJIuXfMEd/CIAOFoyE3phQ=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type; b=Z2qdRg10P5gHc1yhUu3P9R6yT9NCdU1w9y8wAIt+ZVmTyiDEChdmkwoj5shJKurDE JzWB8ECZG2YR+9GbHxdj+I9c8AZws4CehRdkNyFMd31BJxaTxnBTCVKlypzRMUQOyY eD/ABHJoq8Dw5G4smYfufNJAOD1EyPRmj8Hg6pvh+R5GCDP4upQ6/Gr0Plz5RUshMp J44x0B2qti83BPgZzU5GDFgq0gWCIZfVNE1cx1x0Zh7YCu3UciVTxrkR1L2fAHDTPo 4sS20fWxbJf+SrvEq2oerhShI3byPpIXk2HDCRLUbJBTFOOwEH49D+FsuorKKWuGKz UN0zTR+x3BM9g== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Audio graph based sound card drivers can call graph_remove() function for cleanups during driver removal. To facilitate this export above mentioned function. Signed-off-by: Sameer Pujar Cc: Kuninori Morimoto --- include/sound/graph_card.h | 2 ++ sound/soc/generic/audio-graph-card.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/sound/graph_card.h b/include/sound/graph_card.h index bbb5a13..dfa8e56 100644 --- a/include/sound/graph_card.h +++ b/include/sound/graph_card.h @@ -13,4 +13,6 @@ int graph_card_probe(struct snd_soc_card *card); int graph_parse_of(struct asoc_simple_priv *priv, struct device *dev); +int graph_remove(struct platform_device *pdev); + #endif /* __GRAPH_CARD_H */ diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c index 16a04a6..93f6d57f 100644 --- a/sound/soc/generic/audio-graph-card.c +++ b/sound/soc/generic/audio-graph-card.c @@ -744,12 +744,13 @@ static int graph_probe(struct platform_device *pdev) return graph_parse_of(priv, dev); } -static int graph_remove(struct platform_device *pdev) +int graph_remove(struct platform_device *pdev) { struct snd_soc_card *card = platform_get_drvdata(pdev); return asoc_simple_clean_reference(card); } +EXPORT_SYMBOL_GPL(graph_remove); static const struct of_device_id graph_of_match[] = { { .compatible = "audio-graph-card", }, -- 2.7.4