From patchwork Fri Apr 28 06:28:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 88465 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp738617vqo; Thu, 27 Apr 2023 23:43:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5I757lneaQ4QwGTNgFcMbb3vM6leJ8yL0Df+jDW9+sGgoRpz+s3Ugyq0imAV4J3WKNrMZw X-Received: by 2002:a05:6a00:15c4:b0:63f:1eb3:824b with SMTP id o4-20020a056a0015c400b0063f1eb3824bmr6542898pfu.17.1682664199208; Thu, 27 Apr 2023 23:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682664199; cv=none; d=google.com; s=arc-20160816; b=hIAKSGZAwWIciWXRifax96YY90OQfSTyQdjk0SHm7lCMxguJlqC39p6tb0gNQTnl6F Yuj/q+ahadcjRbTJr5hYoTkhQdyEulzv3ek4P48sdyaQD8lSu8syMJEMnoWvSwQfrAiI ZVqZrR5LLm/yUIDSOSGA46LA19ERTegyv5/ZvXWcUrIM+NmxxLJlBTj5Y+BrF+guJWfH 7LgMYqwO9zI0ahD3SIuNN7SMg4n2+UAtWTdK4skjuWFczUTIOAl5fITqRH1B7N1rEl7x rJQ5TlC+RY0TG7UVKv0UdPCH4HtWNJQoPZ/syxJryKhsJ7t/djEngeUtQcK/ulieIXCx rZCQ== 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=IehVkjMqEtcyKVpFY0dShBxhn4nztxIWy3d4JchSyXA=; b=AXyPBCAoLun983sDeNDDe4alBXlwUVjvcWJNF+IBkDin+f+ZItFRzB7QQ3K3HMGvMs tPnpkCcwDg/EmYD+TrUKNwaYNBMmQSye34mDaO1cPVqYbdHDs4Bx23FuSE6HH+zCSFaH +4G0bB4XSRF667UBHWRwXccNRrY0ofHPEwVeEVIW4NCquhsBRw/FPbNYFN0U63e7rqBZ eJSQ6TUD0UKQ7gd+jnN/2hlsyGLjhQdVCtOpKtjQT5oIrU2OAcGbJiJg7HYrR9ufX3qf FYVpnsJ/kEeLdJWDmCpj1Nj3r+x+UT0nca3lWtnhg8V81uDdsiq+Wo+tOsepwTp89Zmc 4jLQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e23-20020aa79817000000b0063c8d702933si20571861pfl.82.2023.04.27.23.43.03; Thu, 27 Apr 2023 23:43:19 -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 S1345043AbjD1G2d (ORCPT + 99 others); Fri, 28 Apr 2023 02:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbjD1G2c (ORCPT ); Fri, 28 Apr 2023 02:28:32 -0400 Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409CE2711; Thu, 27 Apr 2023 23:28:30 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VhAIzhY_1682663306; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VhAIzhY_1682663306) by smtp.aliyun-inc.com; Fri, 28 Apr 2023 14:28:27 +0800 From: Yang Li To: nm@ti.com Cc: ssantosh@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yang Li Subject: [PATCH -next] soc: ti: smartreflex: Use devm_platform_ioremap_resource() Date: Fri, 28 Apr 2023 14:28:25 +0800 Message-Id: <20230428062825.126448-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham 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?1764401295335976626?= X-GMAIL-MSGID: =?utf-8?q?1764401295335976626?= Convert platform_get_resource(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li Reviewed-by: Dhruva Gole --- drivers/soc/ti/smartreflex.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/ti/smartreflex.c b/drivers/soc/ti/smartreflex.c index da7898239a46..62b2f1464e46 100644 --- a/drivers/soc/ti/smartreflex.c +++ b/drivers/soc/ti/smartreflex.c @@ -815,7 +815,6 @@ static int omap_sr_probe(struct platform_device *pdev) { struct omap_sr *sr_info; struct omap_sr_data *pdata = pdev->dev.platform_data; - struct resource *mem; struct dentry *nvalue_dir; int i, ret = 0; @@ -835,8 +834,7 @@ static int omap_sr_probe(struct platform_device *pdev) return -EINVAL; } - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - sr_info->base = devm_ioremap_resource(&pdev->dev, mem); + sr_info->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sr_info->base)) return PTR_ERR(sr_info->base);