Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp345577pxb; Wed, 8 Sep 2021 02:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH6SUW3QjleB/NGz23MAly+dmiG5coOQ/KUGCxdHu3/8pIgIQfVNe8eCoWwh8uMwl/+WNa X-Received: by 2002:a17:906:29d0:: with SMTP id y16mr3112443eje.477.1631093644023; Wed, 08 Sep 2021 02:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631093644; cv=none; d=google.com; s=arc-20160816; b=QSznee6NtlO7nFfSy1P+0ZmuyVjFLM10ukLlbZV9zN7EgLBeyGV9sZb7PHg8eAoQ3H N5yAS229nGsCIFHozfGVtB6wjOX3KZUblIqUkqUSI9UCKPghLc9jSb0MuCEYvelRPHgm 9bbhZWPosnn1FQb7HcYLGRQO32b61h6h6lHKpcskXwMCaFCK4nUlGdz4imCSNw46aE7m NCaL4DI+U0WAs/UJhex5SffgHUXnV5kDkXjLMeoOypVUo4MJGWXCeeV9Jqr3tAr5Jj7Z 9P5FW284o5m4iXzqiGC3wt/oSIHAf9TTGn9i8n+TgTORWZwp2j+TAl4/H72+8z4d9sKQ sWsg== 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=Sgo4Z97fiN2fnP6cSRb1xk4abd4LboO5Mzzvf3GqZsGnBXDuA+K17njO/p+KctRVoS DeuscShWNojrsHUV6L7bD+OWDBcm2oL84fiI3bt7nk7YoYH+DOhy/AwQ0Pw7ZeW6IvVX nS8ePgzUs0+oL7hYj00LPeXES19yGzJYbFTAp/Z3qRGQ6rB+7Cqams4yaYDxWEYtJ086 5R9zqa62Iu6vp5CHhwGb2plo6AWybfvoe0QEWtIifd/6LW22wa62jvW5WJPgzWUz2T2l wuHU7B58nhTagnR7sCz7ZHHRZDT9ZHguiYUuN6QCZIW3uSw6EFB1i/q2l/ODC1Hl1HqJ tP+Q== 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 c11si1611808edt.4.2021.09.08.02.33.40; Wed, 08 Sep 2021 02:34:04 -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 S1347681AbhIHHv2 (ORCPT + 99 others); Wed, 8 Sep 2021 03:51:28 -0400 Received: from mx20.baidu.com ([111.202.115.85]:42712 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234558AbhIHHvV (ORCPT ); Wed, 8 Sep 2021 03:51:21 -0400 Received: from BC-Mail-Ex18.internal.baidu.com (unknown [172.31.51.12]) by Forcepoint Email with ESMTPS id 11681F9671ECF9FCA053; Wed, 8 Sep 2021 15:50:12 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex18.internal.baidu.com (172.31.51.12) 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:50:11 +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:50:11 +0800 From: Cai Huoqing To: CC: , , , , , Subject: [PATCH v2 5/6] soc: qcom_gsbi: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:50:03 +0800 Message-ID: <20210908075003.1108-2-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908075003.1108-1-caihuoqing@baidu.com> References: <20210908075003.1108-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex09.internal.baidu.com (172.31.51.49) 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