Message ID | 87k2iar47q.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Changes Requested |
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 7A6A660777 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 31 May 2016 09:08:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E4C327B89 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 31 May 2016 09:08:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 632A727D17; Tue, 31 May 2016 09:08:04 +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 0367C27B89 for <patchwork-linux-renesas-soc@patchwork.kernel.org>; Tue, 31 May 2016 09:08:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756702AbcEaJIC (ORCPT <rfc822;patchwork-linux-renesas-soc@patchwork.kernel.org>); Tue, 31 May 2016 05:08:02 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:55869 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755920AbcEaJIB (ORCPT <rfc822;linux-renesas-soc@vger.kernel.org>); Tue, 31 May 2016 05:08:01 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 31 May 2016 18:07:55 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id E2BAA496B4; Tue, 31 May 2016 18:07:55 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id E3F198002E; Tue, 31 May 2016 18:07:55 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id DF6D48002D; Tue, 31 May 2016 18:07:55 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id UAG03597; Tue, 31 May 2016 18:07:55 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="211980863" Received: from mail-hk2apc01lp0212.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.212]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 31 May 2016 18:07:55 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3ZwA+KlPthLgTmwY+9RFzalHrTM95JTgGYtD24x8yEg=; b=PBvcNHz2I67CTamjwRgcaT18a7abzUof1Y2v5TAdvfBZvHqviSgYy01waF2OxM957XVWS9SR9odFC4+dHQDMppBg5Joyru86SvgjSJmKYNHFCDyqyEwiN4nX83OCmu3JZUUjKLT/nmqU+kMbo5QAsXCEp5wXEUHUzVdHL2JiJtw= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR06MB1710.apcprd06.prod.outlook.com (10.167.82.140) with Microsoft SMTP Server (TLS) id 15.1.506.9; Tue, 31 May 2016 09:07:52 +0000 Message-ID: <87k2iar47q.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH 22/39 v2] ASoC: simple-card: use asoc_simple_card_canonicalize_dailink() 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: <87fusysjam.wl%kuninori.morimoto.gx@renesas.com> References: <87fusysjam.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: Tue, 31 May 2016 09:07:52 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TYXPR0101CA0026.jpnprd01.prod.outlook.com (10.168.40.164) To SG2PR06MB1710.apcprd06.prod.outlook.com (10.167.82.140) X-MS-Office365-Filtering-Correlation-Id: 578bde0d-ac75-46fb-4dce-08d389330c67 X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1710; 2:5DNciZSOvxe5L1g+D2PHloVDdXb1AqTo89/IHdDlfrjNWnzDLjA5jFwwwMzrJRK/pHMnii/6ZaGaIw8ANv1LqTYTXFq3F8YWUla4cXHe+xIiDU5n/7FGF/wATtvoRx8ylDP/ffNddh710MEF/+fkuV0wkUVcHz0Idj9+H1Wzhvt1HdJ9zHxgbvJDYMxQH5Ov; 3:WV+qwUsBA/Wee0ikvrqUcef8nEkAPFOZMgG+KTvP+pHKylKF3DrMtlk27F91vIU1K+ejvz0oyD41fllhBJhyUrfDG/Nz89OujezLroBpNFeXhLhi2NIo2MABtH4xnnJD; 25:G1kk7sURgDZHiNWfQPgv3L1PXKy522esYB78XA4SVaSNfOg0yK4HPjO79coWHHw0S4tncqLZBPMo4dlEL8wdtTcrJFXUnTbEXMLYamqO2uXfbnZB7B3XMAB/fRF5MPFv2tokUr9UOj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Fenhi9q8pQ2z9zs34Nqktnvdn4K181jdCDIKL7sFYE4OFQp1jo/qmvyQrv1kcPpqKFysPfR1E5ZRUX4sQnss7Y1OKOFrO85OYE1wn3YcQz08S1yWJ6gIDTUMA1XI5vXB/XNo6rgeS6VtScQHX3OoyqpC9iqLVVWq+TFnXvKjZVGqFXAHAv/nv268xS1KIUKH6OWIJCTJCtencr39bzeTGXqVLx78j/YNXhLQUF/Q== X-Microsoft-Antispam-PRVS: <SG2PR06MB1710EDD3DACEA8DBF1E92D6BD4460@SG2PR06MB1710.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:SG2PR06MB1710; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB1710; X-Forefront-PRVS: 095972DF2F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(76176999)(83506001)(81166006)(4001350100001)(46406003)(50986999)(54356999)(33646002)(189998001)(5008740100001)(47776003)(86362001)(36756003)(19580395003)(8676002)(66066001)(229853001)(50466002)(19580405001)(110136002)(6116002)(3846002)(2950100001)(586003)(77096005)(42186005)(23726003)(53416004)(4326007)(2906002)(5004730100002)(92566002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1710; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB1710; 23:HUhVPsoZyjPDTex7HEXxxAnJ0PahmpZXupJdrnZ5I?= =?us-ascii?Q?83t8tPv5d7mbKEeaPxyyv4D+2wCWynD8QDTcX2PySc+L1OMrpf/2wq198bU5?= =?us-ascii?Q?zRPcakcBrtt7fIXrdRa6KHt0b2oSR/p/xFbkHdtYU+rGFDBC9RLN/DzjJBT7?= =?us-ascii?Q?azYY65V19z13CWg05XxRRxVlc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74vEcPUxBL4KbhPQaZO4UDNcWHwxMXkXvf5tHIwmAoxjYhzJ1ye+xWlzmTeOY87lEvHZ+sf96zNYuYdXMX3Pqa8j2DZ3RfnOQ==; 24:u1npp0xW6Jd2ccRLUeDyz4KcSj9FtgnfF33gSVK9k8i3vhjFdDqwMN3xoubZqZLDMMIoLvpWNr1b7g+VIKXHOY0otoYRFx0NsrgBHelPUmo=; 7:XoGutEHy1IaY62yagXEAJkzTK4H+bb52Q6kTn1EyhDXCe04NP5LqAy/vzT1NaqC+8muRtk/+lNxAgdkBE1JTQQHghr3TATEUSGrdMrt9HsDcFnvQsCD6jIZPWcfKFb/QWI1pliIp/4g4MuDfBKY/SFCyG7GjGRDorkhPDIYYc55KakB0AIZq3LVYE2Ew/mpa; 20:G67hnIJy/ayMscpCbduQx+j7HIDb+CllZaOzT7doN4/S+PJFsWoy4lLt2vzDskMDbuH5R4maAewWYOgwZIkBExnx8xnamdMefKBnhgZSpuH1B3i6c+V0U/p0A2maTJxNPfsRGp29gGm4d8BxTY5MLE+77sSPqdwlOhD6MTRnHtk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2016 09:07:52.8180 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1710 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 09ccbb0..11fd7de 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c @@ -280,14 +280,9 @@ static int asoc_simple_card_dai_link_of(struct device_node *node, if (ret < 0) goto dai_link_of_err; - if (!dai_link->cpu_dai_name || !dai_link->codec_dai_name) { - ret = -EINVAL; + ret = asoc_simple_card_canonicalize_dailink(dai_link); + if (ret < 0) goto dai_link_of_err; - } - - /* Assumes platform == cpu */ - if (!dai_link->platform_of_node) - dai_link->platform_of_node = dai_link->cpu_of_node; ret = asoc_simple_card_parse_dailink_name(dev, dai_link); if (ret < 0)