Message ID | 87vaz9gylf.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Geert Uytterhoeven |
Headers | show
Return-Path: <linux-renesas-soc-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C2BF601C2 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 10 Aug 2016 02:21:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0A19283E2 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 10 Aug 2016 02:21:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C55EE28402; Wed, 10 Aug 2016 02:21:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA442283E2 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Wed, 10 Aug 2016 02:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932654AbcHJCVs (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Tue, 9 Aug 2016 22:21:48 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:30232 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932611AbcHJCVr (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Tue, 9 Aug 2016 22:21:47 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 10 Aug 2016 11:21:45 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id C10D946967; Wed, 10 Aug 2016 11:21:45 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id B8B7B1806F; Wed, 10 Aug 2016 11:21:45 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id B17CE1800A; Wed, 10 Aug 2016 11:21:45 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id MAC00828; Wed, 10 Aug 2016 11:21:45 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="217603265" Received: from mail-hk2apc01lp0214.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.214]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Aug 2016 11:21:44 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=HJxI2LgKy/918uFsjv3b8ufGU/OgJJOzACTrcsZYnXw=; b=l2seZFJQPiBR/xjx5GhyJG1IlE6Z++GfKzU4sMT2L9+CBsWfBSFedpzQ5ryXqQDWvOrvVbojJyBvNsjoV641v9B+9qg4OPXV2cAOJ7r7ZYmdjFgOQl364leMK+Wnpq/XwHJs13c2IpkvlE4eeOO9PMKPVx068VJ0RkNSv/DX23E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Wed, 10 Aug 2016 02:21:42 +0000 Message-ID: <87vaz9gylf.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 5/6] ASoC: simple-card: use asoc_simple_card_clean_reference() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> CC: Linux-ALSA <alsa-devel@alsa-project.org>, Liam Girdwood <lgirdwood@gmail.com>, Simon <horms@verge.net.au>, <linux-renesas-soc@vger.kernel.org> In-Reply-To: <8737mdid9w.wl%kuninori.morimoto.gx@renesas.com> References: <8737mdid9w.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Wed, 10 Aug 2016 02:21:42 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0103.jpnprd01.prod.outlook.com (10.167.154.21) To KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) X-MS-Office365-Filtering-Correlation-Id: e0594039-2a44-4fcb-5028-08d3c0c511b5 X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 2:1yqTl5CaIizYNVqwMyx+YA3GJgXq2HOJym0yyWzRpCuhXE3F0RYYf6EcspVLsgAOYxJqk7St6B9OGjcucKSmCubxzwu6QsWISAKldYIrWUde2N67c4VdS1pRIXZNjelY8Fc4IEyJlhtifgK4FLm+KPVwhBkYOtI+Qr5VAU3MajuK3j+eHEE6imUzLFPOmFTT; 3:74BgiYHaTuqq8xpV8Urq9H1O4htQImmpaTlIArZIOBmg2Xssjw1aXBJgn+DxfnxT5bLXCTgot6rkc6nh4AtJSbBu8Cyhvci/xr6T/JmaDmTfMT4Toq9+rcEzn2815yqm X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagn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Q1/Dkoubhmb7EqdX4yifeWBYlGYYzEXm3he82j7M1VXW3Q4xCUTsEdPHU1xdMChflbDftzRr1f3vHoBX3IV5mtMGVmgsPkoUrqaLPXchcrPxY+MfM3x6IP+vCO+EIqrG1CCpQFJBi22nVtUzoH3K/fJefaWGS3pWm3WRSZ+bW52p3MvKTfNs/+cstmJUa9gza3ftWso1Pg9qAZUUnoqa+ZI+kjzqXGSWHn9R3jmC/cIyCCFCsjscEI8fl9EG8DSXExoTD9Q9VoYjK9msu4Vum9I+Z9MlLhGedko3xfOPonm/DpJIlbRHYtl76hR8lDN0IWhk079g91amnuYcoMs4mvBCo5p+Y9dFhhPjX1j2i5GpjaONyQLrGiVo5bEiNVOFFoFofmbSgGR2Ku61otbhM9wwsLAkYkR1BOgfCYbL7wcviuZxJ6AEfpuEgoho9V6lJGkvPqg+dKtZeK; 4:n5FWP9H+hcSRzbtKdwvi3ptS0/qHhDyQBM4XNRH4mQ1prlizmJ+BrBCEA321Q65pCousTlBaCltdP203uvNjSBBP6j1YKQTjMSTjT520ePaXzLOwggNJACgtqnOtydphhN3S7QIid8rqaR6tipgnuQsz4ThkRqe6yWEfA9IJpVWKXzNBlrbW6FueDezIsOxtI6IUKGWz7f8ZyIZqm3TYXH/Y11xQ7L68ikbjXHy7mpYeoCWZnbSE0dsaCsGNh+Qj3nmJxs3jjaYd4n9MJ5Fm1M1ZPTLZGRuKjoyM9aZa0UsQ7s8vubLwEIzZWFT1dgs0mWSr8jkj22BpWN1mDRzhGpWTWd7AJx65U3qniua/vGqyOigh/LCYV8kvK+FKZUAPSAO/GRPHqC+oB3ixspIaZg== X-Microsoft-Antispam-PRVS: <KL1PR0601MB1446FC8D658F123D225602A8D41D0@KL1PR0601MB1446.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040163)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:KL1PR0601MB1446; BCL:0; PCL:0; RULEID:; SRVR:KL1PR0601MB1446; X-Forefront-PRVS: 0030839EEE X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(106356001)(110136002)(8676002)(101416001)(189998001)(53416004)(97736004)(4001350100001)(2950100001)(68736007)(81156014)(229853001)(77096005)(47776003)(66066001)(19580395003)(83506001)(69596002)(19580405001)(42186005)(33646002)(50986999)(86362001)(76176999)(46406003)(92566002)(4326007)(105586002)(81166006)(7736002)(54356999)(7846002)(305945005)(6116002)(23726003)(586003)(3846002)(50466002)(2906002)(36756003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR0601MB1446; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; KL1PR0601MB1446; 23:j6gXjUGfy7kcNeVF595slfSWwRngAEwg8tlUHzF?= =?us-ascii?Q?foRd69EcfRW6iyh9Jx5SZREprUw66r9w4Dec7pHZyUcuL/R4QV0HiswYOoRa?= =?us-ascii?Q?Bhr01pW2637PLZvnu1xag9E8jLEf8w12kfVhR1inVxmY6Um5mhrdXzsJf7O+?= =?us-ascii?Q?17QYR8UUkpljMO3Mrjb/nMyaQtSOVBPZsHgJBv4sft7rbiBNRHj9Wk0OHnOb?= =?us-ascii?Q?Qa8oXNTkuFpKM2gBaLUQCrUmGPuRGp4PoAvMzhdqfAbNY07xEumOV/XvLGS6?= =?us-ascii?Q?nY4m1QWt+Qt6AmbR3UwpQHkHMgF+Cgj9RviYFwA1W9WJw/oHKuKLasmRUWG2?= =?us-ascii?Q?2XiypU0/AUJVObVfy/rFp7owatxcRiDhbwePr7PF6/jchtkXybv/4RPgNsmb?= =?us-ascii?Q?RX8Itpy0QTeZtrLaEwSUpdtWZbJNHdCVZj96rpbuif2KrGvevXHY6mQALgzU?= =?us-ascii?Q?cKCnwbxJegtc7QeS8msLCI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UTtwUALKyYAXvGX9LFQVVYkphd71mOZagRGNd9E4X8IwLngg/mGiGY4CEVo17L+NuNGBhSvqKNS6kQw/W2jz904lRYKQH+8vgeOelrYdbepRmDAhxY3g0FSE9qDLz5txHgbuVBpSwg30HRejhLgp6MkoCdH1Nvx87lkgzw==; 5:TacZ4BlMHhYqhHayJB7z/ycInVq5OOOtgTRpT1si8Ia+dRdptbB4TdChaO5LJP6cM5a/AS7nkWyp0BXV9DpzdZ/FtbGwBiJUOjSvjgNusmwuMDfJSHaFBPxvA69DNQGhqyEhzMO36ovIwulJldmE1A==; 24:7GhWjnTag5vxqjmwsgKNHPYqVoRdBDpKblpuJHUxqw83LCGCpI415WMB06B3J7aLgunf+9GcJWYdvAaQwQK/6Ovlg5nkvvNu/nsnNGlLoYA=; 7:oEXtRkFwtyMxQhEf0fhayFowI8HPyOoKEwi+LajriUsCJ1po7MYTtsxN89iHLFTjTOauEJH/Zgfq8nL/w2pzwtaYvOXWlpyBTOAlF5yyxV88Ura8VokVVMCLm/2E2238yHl7k8YQ8BEf6GuAYBmNeJMQdj+w/d2Q2LW64ujA49UN1uX0ZHA71z5Yk0gAo5REoCPv/QppXXLYbbN7qaKeZ3mI4ZPL/h2GQyWp2MXTqfh4Y4o9fm+p2Jgjc0SiZmc4 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; KL1PR0601MB1446; 20:/pTHd3cbUoN0iC5XIlm8me8otir75rPRYvSg5cT495ImnTr9B4Bwlgl/wYdoEfqrCFQghHn/NwItBQjsLD3ULax+hcK+s5hROsvDuHJqXGDIi+9EqndCViU0wKG4tfbouF5gVaHIS9cHdAVgQ8s54OJK34XqBo7SuA6ggdE035w= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2016 02:21:42.1261 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1446 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-renesas-soc.vger.kernel.org> X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 64896e3..55638a8 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -378,21 +378,6 @@ static int asoc_simple_card_parse_of(struct device_node *node, return 0; } -/* Decrease the reference count of the device nodes */ -static int asoc_simple_card_unref(struct snd_soc_card *card) -{ - struct snd_soc_dai_link *dai_link; - int num_links; - - for (num_links = 0, dai_link = card->dai_link; - num_links < card->num_links; - num_links++, dai_link++) { - of_node_put(dai_link->cpu_of_node); - of_node_put(dai_link->codec_of_node); - } - return 0; -} - static int asoc_simple_card_probe(struct platform_device *pdev) { struct simple_card_data *priv; @@ -478,7 +463,7 @@ static int asoc_simple_card_probe(struct platform_device *pdev) return ret; err: - asoc_simple_card_unref(&priv->snd_card); + asoc_simple_card_clean_reference(&priv->snd_card); return ret; } @@ -490,7 +475,7 @@ static int asoc_simple_card_remove(struct platform_device *pdev) asoc_simple_card_remove_jack(&priv->hp_jack); asoc_simple_card_remove_jack(&priv->mic_jack); - return asoc_simple_card_unref(card); + return asoc_simple_card_clean_reference(card); } static const struct of_device_id asoc_simple_of_match[] = {