From patchwork Fri May 20 10:05:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9129651 Return-Path: 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 1A1ED60467 for ; Fri, 20 May 2016 14:01:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E2DA27A84 for ; Fri, 20 May 2016 14:01:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02F7827BE4; Fri, 20 May 2016 14:01:34 +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=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EA7627A84 for ; Fri, 20 May 2016 14:01:34 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 68C182671B5; Fri, 20 May 2016 16:01:33 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7F02326686B; Fri, 20 May 2016 14:31:03 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id E914426686F; Fri, 20 May 2016 14:31:01 +0200 (CEST) Received: from relmlie2.idc.renesas.com (relmlor3.renesas.com [210.160.252.173]) by alsa0.perex.cz (Postfix) with ESMTP id 35C4B2674F8 for ; Fri, 20 May 2016 12:06:27 +0200 (CEST) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 20 May 2016 19:06:26 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id B512348430; Fri, 20 May 2016 19:06:26 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id A9428800C0; Fri, 20 May 2016 19:06:08 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 5E142802AB; Fri, 20 May 2016 19:06:08 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id VAG17884; Fri, 20 May 2016 19:06:08 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="211716786" Received: from mail-pu1apc01lp0019.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.19]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 20 May 2016 19:05:58 +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=zp1Y6egfgCGIcKTKT6DOkzbuDvjmiG0Y3x9D4KaQArQ=; b=Gk9IQyKX9VELhPQdO0W6VylkhrMnNPDPtbwV5OMsMDF80bDinjlNO3iVZepKiE+9VrhZ60exHSm5RkJQ6NJWXc3ACqWDMSgOC/ojJ2B/r5puGI8QssgySY62rpHnSdI6ms7F47V+Qpo4lG/nMhn1jGZyBvtWKgmCa4I3d4p+ETs= 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 KL1PR06MB1701.apcprd06.prod.outlook.com (10.167.63.15) with Microsoft SMTP Server (TLS) id 15.1.497.12; Fri, 20 May 2016 10:05:55 +0000 Message-ID: <87r3cxoxrl.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown In-Reply-To: <87lh35rs8w.wl%kuninori.morimoto.gx@renesas.com> References: <87lh35rs8w.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 20 May 2016 10:05:55 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0022.jpnprd01.prod.outlook.com (10.161.225.160) To KL1PR06MB1701.apcprd06.prod.outlook.com (10.167.63.15) X-MS-Office365-Filtering-Correlation-Id: 8a5c4115-f342-4193-377a-08d3809655c0 X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1701; 2:jC1kF5WttXplbdIqlcGpvs4kUxJVF9VPY04hZTk0VMg1B20rFhtXqrrbLWRErpo499ePMu99pzrBGMOmlLO/rjF08rjhYyzHIaDAjrr4C5ExtOcIzY1SJDaw0NTTY0LkW9IUW2nzd/SMgYNjhSs2Go5geO3SgPipL8smPvOWi7gYDRhIyRbHZgnaYOUAFePo; 3:VWEora0Qv+E4f63QX3lsZLDLG2/4E5DQZHNctgchZzTJPcpmK37Zrg6fVJuWnk4+jXk9RkHOwwKJHENJy9sWb7RS/JifLF/oFHsnTftZ0A5EQRSjp7MvmB4W1/NTS1cS X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR06MB1701; X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1701; 25:aR8Hhyu3w2+taR8XJBUtj68kcm7ABNyzwRCZdf9TFrNNHaLnP6WG4O6J+KGx7/nIUh0oQCfPu61dmpxx+SH71DuYizW48vX9UdKtH8TjqGXfdFnblbUtGFMskevhvKggTdktSsdMB4RmRmSK9oZAJdwVfMfHXKwVXLNbzjM3XVbw1SQjD0WmYTEw1yrDhqlirfi72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NBizaQPxZqmY5zK06uCCPHDgx+blXDHgbKwD0b5qCwj0WlzurCfXgfOUMMTb7Nm95WKiOfTfYyjLx7F19fwVt3oAv7FO7FkqC8Dittt1BSGb4Bcj8CiF3j4gEjVBRUjoYtx9kl5yWyssRnFMi3d4q2P4RokqsZVeJZjMB8IJYfTQRGVeetpW4ZH3i96012fZgWvaDC4eF9DmQP2Ks3d2W7SxWkJcEAGxbW4anbYVMqQOBczYIt30GvVLOAoM9pJxh9M71YZJH81/UuiFB5l3Xw0+QgHiVYUDuDbx0aJgrWonAIQXvU0c0Ayr1IhBC6xArIRIaGBI1B9cC/i5/Y23xOuBzHsUBtzU+ubpB0K2bP9mGZFNO1fyYDrN5qGOAm5rE6PhwVB+bM2DdyUUdNxQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:KL1PR06MB1701; BCL:0; PCL:0; RULEID:; SRVR:KL1PR06MB1701; X-Forefront-PRVS: 09480768F8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(229853001)(83506001)(77096005)(2950100001)(47776003)(66066001)(76176999)(50466002)(5004730100002)(53416004)(54356999)(36756003)(92566002)(46406003)(42186005)(8676002)(50986999)(3846002)(6116002)(586003)(19580395003)(19580405001)(23726003)(81166006)(2906002)(33646002)(189998001)(86362001)(110136002)(4326007)(5008740100001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:KL1PR06MB1701; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; KL1PR06MB1701; 23:R8GFj2WDLBm3pwb/s0LHFavYsZLNYS+sh1Zq297g5o3wUh7r5VpU6gb23LKM0v8zkQonqw6b6qCfi+TelXobThLaT/Sf6V4VUAxpBaZaryuLme1ndAHwkQEqSbQGbCQ+zEBcK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v98ULXCuz/IH1Mh4=; 7:bM+HxE2oj6WWaLp/0/DVNRX8nhxHDEPLiMInU4sLVgA5mN3Kj3FbTZJDgMna4fDiRqjXLlS9jT5f8iw+NHRTLSrjTTMeNHDge5bY/n4RLoZAy3RvsbchX9h4KuOembNFLmg2iZ2JRJvWWKuLSMzzjf3c/ZC1AgKhUVbEARkihLw3SE6MAFdAAJJm9S5QxyKy; 20:52Th3+IdQfPTlZnVm8j52q3bR9J48dKmXcF+SkJPXwf49QVMs9BcoXl7E7RaUQ3lPhoToCosOQRPPHjc17NKGf1y7+9cIry3JI1eg3gS4Pffg4Tp8AtfqKGsB6dhaLKqmLubDST6fihP063NTXwC+apbuGHkdVwm2xRhs48Chs8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2016 10:05:55.0700 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR06MB1701 Cc: linux-renesas-soc@vger.kernel.org, Linux-ALSA , Simon , Liam Girdwood Subject: [alsa-devel] [PATCH 45/49] ASoC: rsrc-card: use asoc_simple_card_canonicalize_dailink() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/rsrc-card.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/sh/rcar/rsrc-card.c b/sound/soc/sh/rcar/rsrc-card.c index b18f156..814cdbe 100644 --- a/sound/soc/sh/rcar/rsrc-card.c +++ b/sound/soc/sh/rcar/rsrc-card.c @@ -182,8 +182,10 @@ static int rsrc_card_parse_links(struct device_node *np, if (ret < 0) return ret; - /* Simple Card assumes platform == cpu */ - dai_link->platform_of_node = dai_link->cpu_of_node; + ret = asoc_simple_card_canonicalize_dailink(dai_link); + if (ret < 0) + return ret; + dai_link->ops = &rsrc_card_ops; dai_link->init = rsrc_card_dai_init;