Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1676510rwr; Thu, 27 Apr 2023 23:33:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7si7G8OAqVgTCti7xVVy5PmbUT1Fdmt6DXMOlzpSNK/cF010+mBXJQQuR1J+Q3x/AhHjgw X-Received: by 2002:a05:6a00:1a15:b0:63f:1adb:bf61 with SMTP id g21-20020a056a001a1500b0063f1adbbf61mr5774585pfv.18.1682663620773; Thu, 27 Apr 2023 23:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682663620; cv=none; d=google.com; s=arc-20160816; b=HAj69WxtdK2wBTJqM6Na72FW3VLkFppwc0HjDWxow3wchkZ1NzpaUohZXmTknRUxyL 1qizltYp9SeUoAiStSkcSZj26NNrsLF3kJMRSGGLYf+bakIeewpXMvx6DIKz0LuhMz3Q pM6Y11i+JN9/FBptA+VUzjO/1mBNgiPboAgtKmnfBBFdHXqOxUkI8NO+3a4oAjH9iblW F/BgKWDAh+ZBQ9w3XktvFKAV5mY+faQnZQYKFMIcWl2uu/N6lbHGqduR1/vEQkCfRrbU MDziMcMS+iP6T+Nmv7nQL2LuXoW8dCslZCQvmb4VxkUhIOyegdQ7cC8ykdr9S1x3msmA UrqA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y129-20020a626487000000b0063b61b49a30si20001597pfb.253.2023.04.27.23.33.27; Thu, 27 Apr 2023 23:33:40 -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 S1345004AbjD1G2d (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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); -- 2.20.1.7.g153144c