Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp267489pxb; Wed, 8 Sep 2021 00:16:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOZ3NVWHtauxA2/tzrwTV6kyMe5qUuzC3v6DudWenUEEfsB24IL1DHGtYcjCzcAa4FZOhq X-Received: by 2002:a17:906:3a57:: with SMTP id a23mr2527590ejf.469.1631085368746; Wed, 08 Sep 2021 00:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631085368; cv=none; d=google.com; s=arc-20160816; b=pGTPCZnJ8vMMr5b+ozhY2zvk6Mc6prWbIvM4vYIGUTWMXAjTRHeLeaU3fj+HgZbk63 788xiXOWlMhCtd+2SRDRvYzSPmSb7CouUVvoR0yayPg+bg3cpDdxQjkB9WgNuGy4lR4R WQGkmsWbDM1MP+KkDfb9m/XQESDmXxXtL7X7Dq/FOny8jGPZnvnRr2Y/9FVbr+PLdmJV vWTkAURuqAcrOv2n1mlpvYHf1R97AEqz8i7Cj7D0DflK8+xSpS/sb87au3GOf9oYaRiT SgVqt79z3u1o1l6Fr3g86df9DhNUJ63E2HN+7UqMLIo8bvNjZi5Cqy2kZ/qrPyTU0Mdp xEGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=/EcJYdSREJIZ4lKRUKmpfVO8W9xqUMI5MQ+DbJqqiKA=; b=UHB8Ya4vxoE31gri0o0TLTJl8oT2pLiwyfjfrzsHw3bEsPutxBIr1iMTcFH5YJgooC OC3/XauHAmq8LF9kINqmhaZxAWPZwdxNxyqdt5npjvTxzgIDxrdxcDLjQcO4pTpYOR4t YzbagcnETqdieuOa6YrU1T8FBLroT5/u2f5+yGrPESI77nLDciTdU+ilO4L70z19nQv3 eIBoA05KPUcZBkOrAITnjyAn5TJaiEV2KJaJcbGW/FYC98OaFYpXnTVwpyysdB+LLQ2k iwg/aoVnfks5+/5K2OGomYdEjQIGuyug8LDjR1iG8b+F3iHcbbPPyPcO4eQWlRSCSGzy 0z7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si1378143ede.279.2021.09.08.00.15.44; Wed, 08 Sep 2021 00:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349979AbhIHHOu (ORCPT + 99 others); Wed, 8 Sep 2021 03:14:50 -0400 Received: from mx20.baidu.com ([111.202.115.85]:59898 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1349763AbhIHHOj (ORCPT ); Wed, 8 Sep 2021 03:14:39 -0400 Received: from BC-Mail-Ex24.internal.baidu.com (unknown [172.31.51.18]) by Forcepoint Email with ESMTPS id 04F4C5EBB9B52C2583AC; Wed, 8 Sep 2021 15:13:30 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex24.internal.baidu.com (172.31.51.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Wed, 8 Sep 2021 15:13:29 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 8 Sep 2021 15:13:29 +0800 From: Cai Huoqing To: CC: Santosh Shilimkar , Nishanth Menon , , , Subject: [PATCH 3/3] soc: ti: wkup_m3_ipc: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:13:09 +0800 Message-ID: <20210908071310.432-3-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908071310.432-1-caihuoqing@baidu.com> References: <20210908071310.432-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex11.internal.baidu.com (10.127.64.34) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/soc/ti/wkup_m3_ipc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/ti/wkup_m3_ipc.c b/drivers/soc/ti/wkup_m3_ipc.c index 09abd17065ba..388ffbee30a1 100644 --- a/drivers/soc/ti/wkup_m3_ipc.c +++ b/drivers/soc/ti/wkup_m3_ipc.c @@ -435,7 +435,6 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev) int irq, ret; phandle rproc_phandle; struct rproc *m3_rproc; - struct resource *res; struct task_struct *task; struct wkup_m3_ipc *m3_ipc; @@ -443,8 +442,7 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev) if (!m3_ipc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - m3_ipc->ipc_mem_base = devm_ioremap_resource(dev, res); + m3_ipc->ipc_mem_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(m3_ipc->ipc_mem_base)) return PTR_ERR(m3_ipc->ipc_mem_base); -- 2.25.1