From patchwork Fri Jan 12 00:50:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 10158949 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 63BA4602A7 for ; Fri, 12 Jan 2018 00:53:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F7AB288DE for ; Fri, 12 Jan 2018 00:53:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DA8928914; Fri, 12 Jan 2018 00:53:22 +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=BAD_ENC_HEADER,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 5FC0B28948 for ; Fri, 12 Jan 2018 00:53:06 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id DD5592679B8; Fri, 12 Jan 2018 01:53:04 +0100 (CET) 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 4F3702679B8; Fri, 12 Jan 2018 01:53:04 +0100 (CET) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 06C432679C0 for ; Fri, 12 Jan 2018 01:50:41 +0100 (CET) Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 12 Jan 2018 09:50:40 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id CF89A4BA1F; Fri, 12 Jan 2018 09:50:39 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.46,346,1511794800"; d="scan'208";a="269304026" Received: from mail-sg2apc01lp0246.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.246]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 12 Jan 2018 09:50:39 +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=IRIMMXkN/liI0vP6ZhZCcwQYXaXegSB+A//8XT+yhpU=; b=RB50IY+RYbXtkIQ2EIpyNnEMEQftx5ak4AlBkUIrVADHFkgdNDYVb5aS03ZICygV4IKbqVlpeaMAMLWNNaZYQ3PU7A2jkQQdNOqfJGyxMAxtx8u1se2vhN0ImxsgwJSTG9tGoZN0FtnpP7t9kCt67vTulqiIwatZRXI/PrP96SU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.138) by HK2PR0601MB1876.apcprd06.prod.outlook.com (2603:1096:202:a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Fri, 12 Jan 2018 00:50:37 +0000 Message-ID: <87zi5jew9x.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: <87vag7gb9o.wl%kuninori.morimoto.gx@renesas.com> References: <87vag7gb9o.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 12 Jan 2018 00:50:37 +0000 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: TY1PR01CA0147.jpnprd01.prod.outlook.com (2603:1096:402:1::23) To HK2PR0601MB1876.apcprd06.prod.outlook.com (2603:1096:202:a::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cc6f8b67-fb85-41d0-2968-08d559567f39 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020074)(4652020)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:HK2PR0601MB1876; X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1876; 3:EC4d7jRtp7EpEczLDxdfpJxHrh9Ay1K3es32Af9J+luzjRyTGq9IIqsRYFRP7tOKTCw8G2VJls7kGkpogYIasI7WCbNcyI5BfBA1tHwMViNiYakz9fZyqwk1xppxbmvVmJLFe0NV5m9MlQ870kVeigH+jPpVu4bN9tiwdSrcl9Q3cgH7EtAtv4FS2sGNFD+jR4hn7okaEA4EGo99DKLrzXIqorLg0X2OOZ9/pVqZjsn6348Ps85O76jiLcDnwlYb; 25:vGDcMo+PcHUB0nZHJq4bbtIztuLwy2QAqLUccuoSOJ43kxtq6RjZjWL9jGSlab+qhwjsISuGmH85JH5q62wdbo+4G9Ul+XBCeCUkzTEQNvx4+Skv1IubPmiXZgg8rs9YgJ//3kDTRsTJs9juzd1WX43bLRqJGsh1iXbvvf4z2c+yccEq3O5nbg+mZcc7CcUbLFXDksqvzsj3V21j8FyFmApOC/SHQcZNZl1gknG1zzKeUQnwGxWURYIj0VbuOscZwl5hbRVh5OGaZINVdaTHDQ/bq4T+W18iiwAe/0vk6xqdycl7rfXec+QKFfH7WNXpZ2rZJy5edN936JwlHRsHfg==; 31:1A8aV7ieNpBdWrFMCHDM4xtL59Yed7lDGHP8OinIEUymvz8TqMIg0e0bhDzq33dt4wDu/fF7z97RaiKnQdQpYIBBeMYNZfJrTII/IbjXemFCxNsxG8mcLieuwN7aLh7l52k5tCq7thbkXIrwAyXhDpriQEUPtysRuABs9Bhe1mp8CGgY7C17cnTZBx/7lHVWqlFi2AnZX64qYhej1kWpGO2pgrNZzmoUssNJ/Yy3ebA= X-MS-TrafficTypeDiagnostic: HK2PR0601MB1876: X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1876; 20:toh65uJCod65+ANMsKGdtF6HCP4/EHa7aJfKFaSbu/s6EHqiA8EUpdcJ7vx35/g44rkVBk15B/LRiTDPcp8C9zzx7tLYEi/esC41itivLm+p+xcOM3KtcVtNaE3R9by086XltOolFKPuh/YI7QHydfaQcvQXe17oLj4C8S+3Gb2f8uQ77XAXfjmWsr0JpIr3B5AYHQKaf3A1mXW4u/p5sASXpA82h5NzOTb0eBnpHTpyuv1e2t7V69sqBUqvVu0TnlS4wv/ePmZL82iopsltpcGZRTpiTM1/gUIh+bAsgVuF3vOESpqCHAktjd8TbMwBqyBKWf0TwvkLnmNIvrp6qTMIDO8xLpic4U7lRbyXsiAjSabv1E6rNOdTOTbIiFyEjfLERquDXHdKDiicoIumxY6j1wBVdehf8GGsbik7qfRZBBpygMYa4tdVgoC+gFJl5IC091lErYH+xBsk2SAmQDKAciOi5MHPbPV6PoQKC1AXhjAV5pDMX1pULwZJMpmY; 4:9GDlO2Yb7r03i/XuCC6xWGFYNRrtGxIyRfJTPJeCBBSiyaAUz7l9gYNJEjfowYFxlx8/KFXgmHMkEqMgqVdj7ZbSIM50LTnEuE3rcwQJxWkQToL7Oy689WA3BavaOyLc4qRFcT9xfJ4oCM+WuwCsVzKMnk1yxIt+BrodVz5DMU4+vnwLDd+T4fOusWSdXHVmVHyukdEgrmNgliyIz4PS8FRaOtFXJTwVnW2P02W2JjfQtdC9FrViI4nLSvcJFdUmInTMusTe/DgozaRypot78pBPbYQimVB7p06Ors8EXLxJf+1t3MCPKec1UiEq2NTg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231023)(944501137)(10201501046)(6055026)(6041268)(201703131423095)(201703061421075)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(6042181)(201708071742011); SRVR:HK2PR0601MB1876; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:HK2PR0601MB1876; X-Forefront-PRVS: 0550778858 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(189003)(199004)(386003)(6916009)(6486002)(2950100002)(69596002)(4326008)(36756003)(106356001)(8936002)(508600001)(97736004)(105586002)(76176011)(305945005)(50466002)(6116002)(53416004)(8676002)(7736002)(52116002)(25786009)(83506002)(81156014)(5660300001)(81166006)(16586007)(3846002)(47776003)(68736007)(86362001)(7696005)(23726003)(66066001)(16526018)(2906002)(53936002)(58126008)(54906003)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR0601MB1876; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR0601MB1876; 23:omZF3veAUd5/A+uTpu505C/AQGaDk8dpOMy5baa?= =?us-ascii?Q?V8g/QBaejOwoqNeTwuEyCL3415vERotYMeoo9LrwnmNdg95qMq1w3A+tlXed?= =?us-ascii?Q?NBkNZ78h8VyiByVQ5pwWsXtWarscHeGJ17NiHxOIuzuJ/n/WsRJAphSykEuU?= =?us-ascii?Q?KwLbZjKil7vTzpUZqly6limJIMEZgL5BmqnbUS9LF0ZsknVgbVpdY9fBG6DB?= =?us-ascii?Q?fjiRfmrARKpbYBIOH+Zea+1ujiI335vtlMwT4mWuni+HjHT2FHFNNzs1cJLT?= =?us-ascii?Q?Oov4zondgn1mugci5G93HjTxTFHvGgEAbEy19sWaHJPybLIlDs4ZaZD682HL?= =?us-ascii?Q?FN7D6SbnHT4KYOeZp+fURC/3kZJsb1/MYePiZOH8vbrDxEcC4GgR5nPaFzOb?= =?us-ascii?Q?jhVB+2EerV64HHgXPFMrKJmlSJnA16cbs6mEAKRJBtV7hQ7tJrl4YtSX41LE?= =?us-ascii?Q?71F8/sRaB/GdiD6xADSQKlnjeXkZpRNPHFZFWqCd4FobdktPv4w4IeSFvTFb?= =?us-ascii?Q?72OQVct4jEb2VjQEerRfTaZDdb+ipl82WBP70A+5haB3lsMkslvoM+RtcNQa?= =?us-ascii?Q?102XFS1xHwKK+VsmMsaCIRjaXRt7nZeOHUSoeIsGkmKmr2iP4MPeYd1lLSV+?= =?us-ascii?Q?84AacTWa+YlhLAAkZLonkTYdOCz+Zi/aWvnLPKYdmau7XorlCgKdRWuXAG6i?= =?us-ascii?Q?1tzakiMywDT38MBKqZ4qWmncrN34Btnb6cCTDvbIgVcRdsmq3VYgWBga2oUC?= =?us-ascii?Q?7yuUCDZ9euO/Jtc7u4FI+zKvXA0mCc2580sMwvkLMR8WduuTrAZE06reFnPR?= =?us-ascii?Q?m5DTnX0rmKSFI7R2a5Qu08ONSyzJpvTKhvHZkqYeR7dDGHcfNchGVPv7rKNm?= =?us-ascii?Q?V+PK/l9/a5AmCkh5/Y2bB5oOKLKBYDL05oVndOvoYeLbNl0RrPKTSa9zLmj5?= =?us-ascii?Q?EbJ3sH4AYZv1rk0EKO/aPi3bIBWCGU6JrSw2weP9oBAVSBiZnVrWr8qbgkb/?= =?us-ascii?Q?0vvvCIay6DDyAaKuvYpcSgZ8X?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1876; 6:66aXmQqbQaN4KEPla8BUthu3rWpkONZjL067s4hntf0FG9CHtWAyZ/CtqpMmcbhSEpFjXAT61DOewCMvsW4RrLgG+TaUarr7H4k90+B7suRwXCKC2ajMaJAmYptAutAsA50KV7If25Odno2xp4k/dPlKKtuEt1maRzipnfOfRbOjZtP4jQGjgPgHnMpJiezB5whqJlw2Skm+Iincmmrybd4nLVFWAcfY8lNcRO2/H7dPFPfw773abnodj7Nuq+LvJVuDAm3BWtwM7H/tj3dW8K4/4Ixa77VaLq/sfrW1QY4NVQ4M3LWyRnxYIvmVFFKgn8LGihP9s6WrFxiUKvM+W3Y+XTPwRkIm9zoXUCvv5Xo=; 5:eboOHsI3F28C6J33+snPU6AvT31vQ1UqNqsiZA7gpoJyvUpiMfuFPfQ/PFC2QVMn3zZ7XXQr+apgpeLrM2kw9I4naEbiPe5lpscHDUilKZhO7yaq3e3nSvnkDjGIa6MzDtCt2/77J4S/WxvaZ/VKNjfSK0CKCSv49Dlq7plXOgU=; 24:8+kvoq8cgVRPwFU/4pf51mGk6PosE0dDTmyY13bTxj9CvBhFTlkinp4F+6JJZ92e3Q6zTChtTbELZH6BqYEYcOxKiiHrq+KqgXqPE0KMVA0=; 7:/p8WvX9ROpjAdOphL5XVp8WlrEa5a2hZR+3ncP+xG1UZ+622hFvMpjTwC3rH8DGtPd/I/b9nyzrN9EU63FNVbB+D5D7FWFxOYepddwFc2xavzdwkTgGlJ0QQjOJoRF0y012e88o0e2qPLUV6Yq+miG2rsl8UjwP/ZShsiKp2wUZP6FeXSyk9LD2WxoV2Z2YWBVJH5bukLonRMCUM/12ub0ziPE48YmXeHcMDPMh5V113iHJM/lD7R2ThsLhL6EpA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HK2PR0601MB1876; 20:YgnRDbdL6+ZkgEK0TUzIiqFgeA2xMdt3KrfkJ7k/SfQ2dQHCQxLAxqMkfIuavmiWMmoJNi1RE2VZTrXY5V5NTQuxj2ezmlxsB8Fm8XdPfN8428pnuDU2x0fVpTe/HSfCdUADjRKV37foYe8wYnGaB16UPbYYUd8bvZKIZE0ePfU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2018 00:50:37.5555 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc6f8b67-fb85-41d0-2968-08d559567f39 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR0601MB1876 Cc: Linux-ALSA , Simon Subject: [alsa-devel] [PATCH 22/38] ASoC: fsl: imx: replace platform to component 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 Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/imx-pcm-fiq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 4e5fefe..0578f34 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c @@ -341,7 +341,7 @@ static void imx_pcm_fiq_free(struct snd_pcm *pcm) imx_pcm_free(pcm); } -static const struct snd_soc_platform_driver imx_soc_platform_fiq = { +static const struct snd_soc_component_driver imx_soc_component_fiq = { .ops = &imx_pcm_ops, .pcm_new = imx_pcm_fiq_new, .pcm_free = imx_pcm_fiq_free, @@ -368,7 +368,8 @@ int imx_pcm_fiq_init(struct platform_device *pdev, params->dma_params_tx->maxburst = 4; params->dma_params_rx->maxburst = 6; - ret = snd_soc_register_platform(&pdev->dev, &imx_soc_platform_fiq); + ret = devm_snd_soc_register_component(&pdev->dev, &imx_soc_component_fiq, + NULL, 0); if (ret) goto failed_register; @@ -384,7 +385,6 @@ int imx_pcm_fiq_init(struct platform_device *pdev, void imx_pcm_fiq_exit(struct platform_device *pdev) { - snd_soc_unregister_platform(&pdev->dev); } EXPORT_SYMBOL_GPL(imx_pcm_fiq_exit);