Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2557913rwb; Mon, 3 Oct 2022 02:31:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4pRpw5Pg8wWVLnIBuLKnznK/8jQNjAtEZRglonEVhPbWotHxRBroyQdAjs/xgZH9CEAaBy X-Received: by 2002:a05:6402:2690:b0:452:3a85:8b28 with SMTP id w16-20020a056402269000b004523a858b28mr17490049edd.158.1664789508329; Mon, 03 Oct 2022 02:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664789508; cv=none; d=google.com; s=arc-20160816; b=eGL6bnbMl2L42BX0IFwo+Fv5cnLGIvlhMpDAKwpwGdzkOY0TEogAF75f9ASkQBHL4m 6TKF7i1fx0bAMsnBkvCmtBFKqTAXRacF5K9mmc0IEV5kgrr5oJV/G2p/9u7geg+cofZ6 IKhRCmaQlSLhbAfphaIw9pngbKiG241tl8JlO+YrOnfgdN7r5qzmgUP8Y+teIFC9dHId K3EboROcu5KDDSKMptTL15JgEKL66SI1pbAVAcXId43aKjRkoiB0kzJ+VGQdtSZApouh GaStgRDZc/g98lYqnUhjOg42aRYrGRe5T35HauejEIMeUoaS7orTqq4kTJ/Qjdxybu4h WwxA== 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=GNcR3zEUYKc5g3Qer9O2Tseti2ncClGyYZwhCthwMoU=; b=TK8n2PFnOgv4zdurNID6wqnNr+sIw+SdFuTGM7Xj0JWSJw/rkTgGV+oN2Ey1GA+rrS 0qekEFyCHGygJIFJ5fM6y34xmkrUAEMvvN9weAYP4cz5Bm41+Z70dpIn8FnUbGjCmQrD nbOqRZMekQs7ruw0GjjVljsQm0hpc7wUSJrCp9+DfiWBuWbAEn71MYSrOrwN4TlQq+70 frTljoNASDhvYPKN8dSFBgJeLDKgKnMQ44U9krRBI+25VzltvKQyPfqi+h2X5R0m0M+/ eDg4e8m3VWQfENvBNkAh8mEU3BlIWPhGHf1lnWASQSOsBjMh9AXcpCF+KJa/mr/N1JgK cDyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="g/3UOZSN"; 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 y14-20020a056402358e00b00457e7b5d230si8984407edc.550.2022.10.03.02.31.21; Mon, 03 Oct 2022 02:31:48 -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="g/3UOZSN"; 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 S231881AbiJCHlo (ORCPT + 99 others); Mon, 3 Oct 2022 03:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231820AbiJCHkE (ORCPT ); Mon, 3 Oct 2022 03:40:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 365AA550AA; Mon, 3 Oct 2022 00:24:27 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C93F260FB1; Mon, 3 Oct 2022 07:22:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE7F9C433D7; Mon, 3 Oct 2022 07:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781774; bh=Ec2umAUNoV6vf2EnQKij1Zy7RdUEx26M1LjC1WAhYyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g/3UOZSNb2SiUOlViVRPJFMothnqy01q8aqYcdzunOd9Hin7hxKyMwc38VejS1HKM iy1MQGDK8PgnzIykRjlBthX0APhhSZofo7L/OZdM9THuzo0W5tZp1fcR6LcalwH2Hz fA/GZiSIQqeePBOiRHgYeK27pOmI4n8iASlrwwdY= 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.10 35/52] soc: sunxi_sram: Make use of the helper function devm_platform_ioremap_resource() Date: Mon, 3 Oct 2022 09:11:42 +0200 Message-Id: <20221003070719.779021866@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070718.687440096@linuxfoundation.org> References: <20221003070718.687440096@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 ccf42086f6ca..ba05727b2614 100644 --- a/drivers/soc/sunxi/sunxi_sram.c +++ b/drivers/soc/sunxi/sunxi_sram.c @@ -321,7 +321,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; @@ -332,8 +331,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