From patchwork Wed Mar 22 06:11:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye.xingchen@zte.com.cn X-Patchwork-Id: 73229 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2184840wrt; Tue, 21 Mar 2023 23:19:08 -0700 (PDT) X-Google-Smtp-Source: AK7set9qsvA++ZUEQNTLB9PrCoBKspl7z7LKz7UXC9gosZcJh19fFHcD+JTxp8Tr1CfNutElzKCa X-Received: by 2002:aa7:c858:0:b0:4fe:9bb7:73a2 with SMTP id g24-20020aa7c858000000b004fe9bb773a2mr4944962edt.38.1679465948294; Tue, 21 Mar 2023 23:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679465948; cv=none; d=google.com; s=arc-20160816; b=O0EldPUHtC8s9m+rlIRpRMok7nIWEHzLveyovn2NqqxaDFAGceapcZ6wQlrp5B4TE7 7qeVJ5TFwRQBDkEyBibokib7XbzoQnAx/ezjL8z9stjf7x/wgk7ZLE8pCLFlrN4j6NZO 7SSdevsocCUaoNCiK0qDVB3NHCJDzkFCZMp0sHx9OhKp1ZYBY0TXZ4yqC8TsMGWpuXuO aySoVhIoFSUu3tBrjxGMKxY4j/1lNjsekFK0rexP8TNa5fcK0NVkeJfQ7q+arCj1EeOC sTrRgMNA0asH4N3G00OGbq4Ex8KlwGIpLtPKeG0jipDHT1/eohGKzzm7yUPbkQFajgiP lKfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=gsUKpkonXAqURFTBo8YTzK2ZrrxGzTdFySsUMAgAFKQ=; b=WyH9Y/Q4GApn/WdcC/ZUkxX7liF7egLIBdQ0oXT4JsUHV5isFOqx/PS9i+KTXvfs5v WvCYkkibpPLW55ANCmaAYmlMLI0vkrIE2zenYQkCGkDitxRSKi12221HRvYrEKP/nlS5 ADq1SwePWuz/fCe6T32DXMXscxukH7ww6Ibih5A+8A7i/eKDwzsWywo3hYeHFTIoxLXc pHaclzg+uDYqBW0UOUvr2iF/fZcsFewZc/ywwTx84YCjiizMefhiPlNNp5pi7SckjB3m pP34XkxccdtARR8I7UGss6d7G/tOIbxa7I2+egphcgpiOFgKLXkTnhI/AnINz6HeGFS5 BxeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m15-20020a1709066d0f00b0093229a6bc5dsi13607102ejr.264.2023.03.21.23.18.44; Tue, 21 Mar 2023 23:19:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229833AbjCVGLa (ORCPT + 99 others); Wed, 22 Mar 2023 02:11:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbjCVGL3 (ORCPT ); Wed, 22 Mar 2023 02:11:29 -0400 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA21933CFD; Tue, 21 Mar 2023 23:11:27 -0700 (PDT) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4PhJ5B1HQ6z8R042; Wed, 22 Mar 2023 14:11:26 +0800 (CST) Received: from xaxapp02.zte.com.cn ([10.88.97.241]) by mse-fl1.zte.com.cn with SMTP id 32M6B9v6018112; Wed, 22 Mar 2023 14:11:09 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Wed, 22 Mar 2023 14:11:11 +0800 (CST) Date: Wed, 22 Mar 2023 14:11:11 +0800 (CST) X-Zmail-TransId: 2afa641a9bffffffffffe8b-27ccf X-Mailer: Zmail v1.0 Message-ID: <202303221411117451283@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , , , Subject: =?utf-8?q?=5BPATCH=5D_ASoC=3A_ti=3A_omap-mcpdm=3A_use=C2=A0devm=5Fp?= =?utf-8?q?latform=5Fioremap=5Fresource=5Fbyname=28=29?= X-MAIL: mse-fl1.zte.com.cn 32M6B9v6018112 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 641A9C0E.000 by FangMail milter! X-FangMail-Envelope: 1679465486/4PhJ5B1HQ6z8R042/641A9C0E.000/10.5.228.132/[10.5.228.132]/mse-fl1.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 641A9C0E.000/4PhJ5B1HQ6z8R042 X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761047686456431064?= X-GMAIL-MSGID: =?utf-8?q?1761047686456431064?= From: Ye Xingchen Convert platform_get_resource_byname(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource_byname(), as this is exactly what this function does. Signed-off-by: Ye Xingchen --- sound/soc/ti/omap-mcpdm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/ti/omap-mcpdm.c b/sound/soc/ti/omap-mcpdm.c index 0b18a7bfd3fd..35deceb73427 100644 --- a/sound/soc/ti/omap-mcpdm.c +++ b/sound/soc/ti/omap-mcpdm.c @@ -563,8 +563,7 @@ static int asoc_mcpdm_probe(struct platform_device *pdev) mcpdm->dma_data[0].filter_data = "dn_link"; mcpdm->dma_data[1].filter_data = "up_link"; - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mpu"); - mcpdm->io_base = devm_ioremap_resource(&pdev->dev, res); + mcpdm->io_base = devm_platform_ioremap_resource_byname(pdev, "mpu"); if (IS_ERR(mcpdm->io_base)) return PTR_ERR(mcpdm->io_base);