Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp286437pxb; Wed, 8 Sep 2021 00:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIq2V30jH5xhGorfcRZc7Vr8ZUhsdNYbUqghsofc4SYv4iWMTvF52g1oRAs++85rmpt9LX X-Received: by 2002:a17:906:2350:: with SMTP id m16mr2686558eja.340.1631087473670; Wed, 08 Sep 2021 00:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631087473; cv=none; d=google.com; s=arc-20160816; b=uENkrB2i3dVvznKyOf8LErOUMWFm7xJ+hvmHkJczE2+voID8pRFtDV6kPkU2DmdoPt WlnvuqbOP6z4jD4F2asoi9gzBkcNduVA1jjtd9ONR04xxUpYGEI5O7HAekkE1BD+8wvA rvDEwXWk+MagvhaI/soRaawfMNQtiZhf2P2FUyByOJT/jGNJntuMlYUD9H6t8vGDNx+g JzGiyEV8id1mL7hYAjewrV1IgvCb2jXcCKlFlvVh0oovIjuFuCmGP5vTeJ9RQgXsnT4K Ljp19FV4gwuI54hHxHcqHHBoKo4KZ8XQ+Y8exnX2jZt9itgG7daDioCTlpSBnMb9O0Wf xHgw== 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=SL9WdoCk2QLQm3CpFwhcBhFSx+/Q3QA0ht6CkYORlqo=; b=J4fusWnclRDDCRDpt6gOqiT5bUQnS+1U1Khqrnp0/ZrHnG9NUdMwE/nBT/sWwJg3yX 9jF+tLqVnB6CW+vGaV8lNPxDBajNS/Z8Q+WWseFfEzOjhPYNhsD2813gZu1pwM9oYLEx t1l1vW//ujhy6PBAwiR/AjujYdLLvhJblD8jLBY2MUM8MHUDAwBgbtSIzJdnU8S99U19 /DV6RhRm6vfdnOGfxVLXYmyLA8ID8dreluAzjrlAfdk1NcUEliEoNARcfI30K1AQiPrJ aAovNkxBxw0ThCIYH2rTxTyBUuHFtlel9d4rJ8aNDY1DSWByxZ+tqg/Wk84votJqWoau yZ6Q== 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 dr5si1680072ejc.33.2021.09.08.00.50.49; Wed, 08 Sep 2021 00:51:13 -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 S1347469AbhIHHLM (ORCPT + 99 others); Wed, 8 Sep 2021 03:11:12 -0400 Received: from mx20.baidu.com ([111.202.115.85]:55092 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1347071AbhIHHLA (ORCPT ); Wed, 8 Sep 2021 03:11:00 -0400 Received: from Bc-Mail-Ex13.internal.baidu.com (unknown [172.31.51.53]) by Forcepoint Email with ESMTPS id 2109B24A1518C9F52F8A; Wed, 8 Sep 2021 15:09:48 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by Bc-Mail-Ex13.internal.baidu.com (172.31.51.53) 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:09:47 +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:09:47 +0800 From: Cai Huoqing To: CC: Niklas Cassel , Andy Gross , "Bjorn Andersson" , , , Subject: [PATCH 5/6] soc: qcom_gsbi: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:09:29 +0800 Message-ID: <20210908070930.214-5-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908070930.214-1-caihuoqing@baidu.com> References: <20210908070930.214-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/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