Message ID | 20230428062825.126448-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;chrisjones.unixmen@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <yang.lee@linux.alibaba.com> 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 <yang.lee@linux.alibaba.com> 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
[-next] soc: ti: smartreflex: Use devm_platform_ioremap_resource()
|
|
Commit Message
Yang Li
April 28, 2023, 6:28 a.m. UTC
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 <yang.lee@linux.alibaba.com>
---
drivers/soc/ti/smartreflex.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
Hi, On 28/04/23 11:58, Yang Li wrote: > 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 <yang.lee@linux.alibaba.com> > --- > 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); Reviewed-by: Dhruva Gole <d-gole@ti.com> > if (IS_ERR(sr_info->base)) > return PTR_ERR(sr_info->base); >
Hi Yang Li, On Fri, 28 Apr 2023 14:28:25 +0800, Yang Li wrote: > Convert platform_get_resource(),devm_ioremap_resource() to a single > call to devm_platform_ioremap_resource(), as this is exactly what this > function does. > > I have applied the following to branch ti-drivers-soc-next on [1]. Thank you! [1/1] soc: ti: smartreflex: Use devm_platform_ioremap_resource() commit: 9f60d9d310b94c5869a5b6a2f1707b90bd60245c All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. [1] git://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
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);