Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp285799pxb; Wed, 8 Sep 2021 00:49:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMdZvSAHxWFg2q4MvKfFZpcnzyFijaScHSSOhVFoYCPMZxvDXMQEqf4amnA8aHFyLH9m9h X-Received: by 2002:a05:6e02:1906:: with SMTP id w6mr1925556ilu.295.1631087399195; Wed, 08 Sep 2021 00:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631087399; cv=none; d=google.com; s=arc-20160816; b=H2EtOj0CCpEfEbqMX4zr3Uw1b/LLQYh1in8l6d0/RgAt46xxX1B8inZZZ9usJH2Ks2 tmSgCTsGJdJj7ehn1u5t0BdZXRroxsUVg1EjXkcz/RzfzZja+jpWbVnP+trAVL2buMMD mxcS6aIrprKEvJiiq7PnSRdcPOfpQnu81kyMF1gfodAI/k7ZN/aTFTH1TWEsrrSqqLi1 E63ogHQTUvvqguAbIwHO7//TdIhYPj8znt5ChEP6FuFJXe6IDiuQ6SPyZPNssVXfnVQQ hsXhOphFQ5vuE6cCBqbhMWSJ1YuJplbXNzQ0geemRCJXsSPxtlSi9HskHUdw0YM7Fv5Q lK9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Df0bgX2+gLcbCbMWsf4SpBpTlbdCrz5eN/rND4mSMJ4=; b=h61QGhExjq8al2f0NfPjz+N1ZYmCRSOXIduH2D2AOeNNve5WQNK2EgS5YugCja8IuK AYsvtwKDluDbPZeaDbn5Gvnsnlrx35KFf0P+CQdsGD4kEWLAISpwtfVe8CKNp1dLUuWT 6mxkkg/z5pAEds8HJ2c3u1ezJVlnoYULFzZrDxkraQslpMWQdsP+cNUKrlpENDyxGJ7P J5fShDw8Tsn0slInR367wiED5t5a7Jh+BqthKZOLbes7NDzkAohxKDLGYEZ0k1TDgrEp 7e7nutqRDsMddRNQRRXjAf0Tn9Q5uV+sQwuAOshPdgZCr+4rDqWRGX8D2ArXK/+WfWje U6qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si1255396ioh.63.2021.09.08.00.49.48; Wed, 08 Sep 2021 00:49:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348728AbhIHHMs (ORCPT + 99 others); Wed, 8 Sep 2021 03:12:48 -0400 Received: from mx20.baidu.com ([111.202.115.85]:57816 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1348636AbhIHHMr (ORCPT ); Wed, 8 Sep 2021 03:12:47 -0400 Received: from BC-Mail-Ex30.internal.baidu.com (unknown [172.31.51.24]) by Forcepoint Email with ESMTPS id 3224E2BA1E951A9254FA; Wed, 8 Sep 2021 15:11:38 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex30.internal.baidu.com (172.31.51.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Wed, 8 Sep 2021 15:11:37 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 8 Sep 2021 15:11:36 +0800 From: Cai Huoqing To: CC: Neil Armstrong , Kevin Hilman , Jerome Brunet , "Martin Blumenstingl" , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Florian Fainelli , , Li Yang , Krzysztof Halasa , Matthias Brugger , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Thierry Reding , Jonathan Hunter , "Santosh Shilimkar" , Nishanth Menon , , , , , , , , , Subject: [PATCH 1/2] soc: fsl: guts: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:11:13 +0800 Message-ID: <20210908071123.348-3-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908071123.348-1-caihuoqing@baidu.com> References: <20210908071123.348-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex11.internal.baidu.com (10.127.64.34) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/soc/fsl/guts.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c index d5e9a5f2c087..072473a16f4d 100644 --- a/drivers/soc/fsl/guts.c +++ b/drivers/soc/fsl/guts.c @@ -140,7 +140,6 @@ static int fsl_guts_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; struct device *dev = &pdev->dev; - struct resource *res; const struct fsl_soc_die_attr *soc_die; const char *machine; u32 svr; @@ -152,8 +151,7 @@ static int fsl_guts_probe(struct platform_device *pdev) guts->little_endian = of_property_read_bool(np, "little-endian"); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - guts->regs = devm_ioremap_resource(dev, res); + guts->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(guts->regs)) return PTR_ERR(guts->regs); -- 2.25.1