Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7251191rwl; Thu, 23 Mar 2023 01:19:43 -0700 (PDT) X-Google-Smtp-Source: AK7set9Grs+9K4Ks3Afic6rnvuFkqDQWP+obqwNB4JdkTsKEjE8WU2wb97U6NHGdms+9TqMZVd7u X-Received: by 2002:a17:906:f8cb:b0:93b:1cc5:4a1 with SMTP id lh11-20020a170906f8cb00b0093b1cc504a1mr5848903ejb.40.1679559583169; Thu, 23 Mar 2023 01:19:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679559583; cv=none; d=google.com; s=arc-20160816; b=kq0sDH//HkyEf2LAT3UhFy3tn7+kE5ccjCQDPSPTSJZERPLyBRLkqkb6CGaU23CCd8 HhWsUCven/OrijIudpuvS6KwjoRTKKL92R/gJBFOuYRa02CcdFsNXgye2OgSJ3tl2paC ErChkhrPylAVDB2VVieOSjykO7qVsQh3zu+dC3Fnl9wPG80xAZCUDWW7At8eeDpvd14V cgHcImhLL0Fl7ij9oqTOvpHOk+kBr+DaiK1pSqYEX0xdPEWrJUrofNlAnSuDtztmQncA htOXTX8rVSbKFP38mxqEaDsUgS2wzegWcJ+wxkVpSZ0K1OfTC/zKRKdtYlEZvJM4KVOs KHyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=n6vesGG0KJyGvZ3NnPvuk8u1imLoVg9XgQKFuqXA8pc=; b=sViBNcxxUv2D9/cZbLgwbKgfzLdSkioa/xfaSEjZWzaQRwRcFG5Gjn0+Mja3BXdcaa 6u/2D9CTMznNcRsK3sUWfeJsj2it9/NG4wETodwF/lNXUO9cdRv2Ni5YsGskubOPDh47 8fRFIbcjbG89KrKTKAOq/jhtMoTMnbbsOXG/x3bK1nkzaoaUs0ZNFoPah4cBTSRzoEl8 E+ctMjdTYWQw+Q6AqTiR3kEhh1ZXFfxa+ZCnyNy0OWQSaSGzd9ftdR2L5PUiROjqAcXy 83jbRsXc3Pnsdw7e4MoymB2hCZv6bokNTCwaPsk6CxTRENknV1fk6DyiKmVv4tooroyV ghRw== 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=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ba17-20020a0564021ad100b004bd4b029f4fsi17696799edb.297.2023.03.23.01.19.18; Thu, 23 Mar 2023 01:19:43 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbjCWIKA (ORCPT + 99 others); Thu, 23 Mar 2023 04:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjCWIJ7 (ORCPT ); Thu, 23 Mar 2023 04:09:59 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAF4159F7 for ; Thu, 23 Mar 2023 01:09:57 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R271e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VeTX4HA_1679558994; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeTX4HA_1679558994) by smtp.aliyun-inc.com; Thu, 23 Mar 2023 16:09:55 +0800 From: Yang Li To: nm@ti.com Cc: ssantosh@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yang Li Subject: [PATCH -next] soc: ti: Use devm_platform_ioremap_resource() Date: Thu, 23 Mar 2023 16:09:52 +0800 Message-Id: <20230323080952.124410-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 According to commit 7945f929f1a7 ("drivers: provide devm_platform_ioremap_resource()"), convert platform_get_resource(), devm_ioremap_resource() to a single call to use devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- 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 6970478b40f3..c9197912ec24 100644 --- a/drivers/soc/ti/wkup_m3_ipc.c +++ b/drivers/soc/ti/wkup_m3_ipc.c @@ -615,7 +615,6 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev) int irq, ret, temp; phandle rproc_phandle; struct rproc *m3_rproc; - struct resource *res; struct task_struct *task; struct wkup_m3_ipc *m3_ipc; struct device_node *np = dev->of_node; @@ -624,8 +623,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.20.1.7.g153144c