Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2516330rwb; Mon, 3 Oct 2022 01:45:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM67f2OvUqTU1AgqFOJ1FurgHyQPLguf/0F2eegUSnySThM8TOp31P7QMY8jbo5Va3SvgsvA X-Received: by 2002:a17:902:da81:b0:178:2663:dc8d with SMTP id j1-20020a170902da8100b001782663dc8dmr21716218plx.49.1664786750409; Mon, 03 Oct 2022 01:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664786750; cv=none; d=google.com; s=arc-20160816; b=w5pYZRIKSJReNnC8/zTFQcFnQE8+EjBZkaDXjK+kULasknlxSRjCZLIlA7WymjVI3B bwyyizw98r0G7TLeayi2+zRfrR80pP1KCSdvlCtZTBQ6VFOhiyeoy4i2JLsVABnbq2oQ 4KteztbP8FjNpT9OpdSHQMcFDH4nEBo2LO8581/xdEHTeuT4utLHM8kSpqVwiBWPBZgn j6sb9QZYRIUvPmpwHYmwL8Kc4Hep92uU6Wp7viDbFk4OXGbeP+f7Cu9ZEtGH/dq8GWDm LDseSVh79n6CRc3v9HgoSJVD9fBJptWn5e9xXCSZXFavVMydDXyH/l1hYVrRj//+znuw CxCw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=c2E8+HHlFAgQxlSJfnb1wK7oEmXhAbNkZD2tI7sH3Dw=; b=ruShw8Qt0Z5m1x/3y69CYyfQmvCYlO+PJUYmSYU828Cy2/xzl9+NiTvoftCt7GDOr7 cwj+C1f6mDYMtL0gctm8O+VbmWgKbr18SFiD0lfHE580/KPZDuHVgOlMCaGTHFVMKsNa 8UjqxNI+jLXFbfczEdoWuzQKg57qZWfHceUCcUvl8gmX6RGNd9P6LNDtNwKLFYcSifZb 5DRHoWLYTJ5WRIoVpsGs3ScWPCln9w/cb3eZKZ3Ls5lVJaHhnjQ9SuKtPMWkt0nDTTNl J4Z1xtox1jkfRzveSRCCZ5DVMwW7qlh0TH528E3daY4UQXP7nNXnvPIFYUoV1rh0PWqy 4feg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=av2mET+I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020aa781c2000000b0053bafb8e916si8784107pfn.162.2022.10.03.01.45.39; Mon, 03 Oct 2022 01:45:50 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=av2mET+I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231617AbiJCHf6 (ORCPT + 99 others); Mon, 3 Oct 2022 03:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231814AbiJCHec (ORCPT ); Mon, 3 Oct 2022 03:34:32 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E03C149B62; Mon, 3 Oct 2022 00:22:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id B0BB4CE0B1D; Mon, 3 Oct 2022 07:18:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3F9CC433D6; Mon, 3 Oct 2022 07:18:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781502; bh=srxjzZY5EJ0HE8zdc1BQ/dfSOD/R+nPgAYhcyFjvujU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=av2mET+IhhAdG7gPHnLcKKcFCB+D9fKw36RZ+R30HLr5Lf9b/57qo3MgXROr5eiNQ yuEc6M94naUUkMV80GY4/rt6IIhyJSLhHNd5QNfvdDFCo/sb+5zoCKvQSSEcSnC7nO 1MVkL89afjhQ6a+Es9dHc/EoiYYyJqm8XT/dTbW4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cai Huoqing , Maxime Ripard , Sasha Levin Subject: [PATCH 5.15 44/83] soc: sunxi_sram: Make use of the helper function devm_platform_ioremap_resource() Date: Mon, 3 Oct 2022 09:11:09 +0200 Message-Id: <20221003070723.098373805@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Cai Huoqing [ Upstream commit 1f3753a5f042fea6539986f9caf2552877527d8a ] Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing Signed-off-by: Maxime Ripard Link: https://lore.kernel.org/r/20210908071716.772-1-caihuoqing@baidu.com Stable-dep-of: 49fad91a7b89 ("soc: sunxi: sram: Fix probe function ordering issues") Signed-off-by: Sasha Levin --- drivers/soc/sunxi/sunxi_sram.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c index 852f0872f669..a858a37fcdd4 100644 --- a/drivers/soc/sunxi/sunxi_sram.c +++ b/drivers/soc/sunxi/sunxi_sram.c @@ -332,7 +332,6 @@ static struct regmap_config sunxi_sram_emac_clock_regmap = { static int __init sunxi_sram_probe(struct platform_device *pdev) { - struct resource *res; struct dentry *d; struct regmap *emac_clock; const struct sunxi_sramc_variant *variant; @@ -343,8 +342,7 @@ static int __init sunxi_sram_probe(struct platform_device *pdev) if (!variant) return -EINVAL; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.35.1