Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp294829pxb; Wed, 8 Sep 2021 01:05:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+nNNuOYh1XnpEHyRrQrozJPD825EH021Y7JMqOw8Gif4/BndMyBNRCRlyq/PEVeT0N+FK X-Received: by 2002:a05:6638:408b:: with SMTP id m11mr2543283jam.136.1631088346360; Wed, 08 Sep 2021 01:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631088346; cv=none; d=google.com; s=arc-20160816; b=dK6jaFjVzrgQCbT94gDCw5PKMPXx3YezF9G4sM40cKuT1CcwIAKHfraVsz18de/tuo G/m8ERdPseUsPkDMFro0mvPTNkuqcyH01ZQCOasakMD71SDEvLsK8ZWh0kPLs/IXoyQt 5z3eC36EE5Nh70fyYxF0XztOWDuSszq+OqO9gT1vIe0vhbVmpuT1IsQawNhbeltN1B/0 4HWCZsUjibFxi8546ULr3tD70a3z4lMtz9DEQ1gSTy+V6IWMlM4gf/GCqoboKiRhteqc kdgfmhk45zOtrVS+kYqWzjc6O9p/FGrWcKZd/nZoVT3SrYiQ2gaVUiujBTVVhC33IIcu jPLQ== 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=AODj9ZPEHAUGL+MV4avWwm435sPHQAJcKACu7qvFH0c=; b=VayKMd2xAUbTGuSa7ktCZLsn6msn+NW5mQlcn8iZwsP2l1RnUOTwVjwqRexqwp7uIA vxnBKN9oNbr/9TIUANzmMv0ElAwMlChh5N7kIyRMZdxG4/VJMoSx5C7P6ZfNPA8SnGUl 9dLhLq4Qvz338/y/RKu+YXb3xxlnPwardIsPf3SRCIwDq432ATLtMMhgksk276sSxDMI 3sq/n4fMnNoOzLK79kSYF+S5TDxJU76x3y1M2elXWxS01PQN8tSJuQ6pxXGeYulDqp0Q XOPgQLv29kmZ2eI2YnU83UrnahhfTIDL6K0tSw5/WdmwYI3R/xeiwlCHI7aPLjuHNJXD qobw== 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 126si1218481jaw.85.2021.09.08.01.05.29; Wed, 08 Sep 2021 01:05:46 -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 S1348066AbhIHIEO (ORCPT + 99 others); Wed, 8 Sep 2021 04:04:14 -0400 Received: from mx21.baidu.com ([220.181.3.85]:56512 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235106AbhIHIDs (ORCPT ); Wed, 8 Sep 2021 04:03:48 -0400 Received: from BC-Mail-EX08.internal.baidu.com (unknown [172.31.51.48]) by Forcepoint Email with ESMTPS id 4D62C717629375A3B364; Wed, 8 Sep 2021 16:02:32 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-EX08.internal.baidu.com (172.31.51.48) 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 16:02:32 +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 16:02:31 +0800 From: Cai Huoqing To: CC: Niklas Cassel , Andy Gross , "Bjorn Andersson" , , , Subject: [PATCH v3 5/6] soc: qcom_gsbi: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 16:02:15 +0800 Message-ID: <20210908080216.1301-5-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908080216.1301-1-caihuoqing@baidu.com> References: <20210908080216.1301-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex11.internal.baidu.com (172.31.51.51) 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 --- v1->v2: [PATCH 6/6] Fix typo 'dri_id'->'drv_id' v2->v3: Just send it as a series drivers/soc/qcom/qcom_gsbi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/qcom/qcom_gsbi.c b/drivers/soc/qcom/qcom_gsbi.c index 304afc223a58..290bdefbf28a 100644 --- a/drivers/soc/qcom/qcom_gsbi.c +++ b/drivers/soc/qcom/qcom_gsbi.c @@ -127,7 +127,6 @@ static int gsbi_probe(struct platform_device *pdev) struct device_node *node = pdev->dev.of_node; struct device_node *tcsr_node; const struct of_device_id *match; - struct resource *res; void __iomem *base; struct gsbi_info *gsbi; int i, ret; @@ -139,8 +138,7 @@ static int gsbi_probe(struct platform_device *pdev) if (!gsbi) return -ENOMEM; - 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.25.1