Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp464023pxb; Wed, 8 Sep 2021 05:23:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymm6e3h68UYRXRmLtM5hYz+P5C2rNGXCc2XUn6SFpSRZqxYCq1Sdtdta4nmsGTPyyrFI2P X-Received: by 2002:a02:c6c3:: with SMTP id r3mr3427916jan.69.1631103831338; Wed, 08 Sep 2021 05:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631103831; cv=none; d=google.com; s=arc-20160816; b=hxhRvNTg6DjddK/DTN1Ik0T3HWgu3CIaTRWEoOaoYyW3d3R5pYZ4UaqclhD2Cl6vj+ k+VARuRNAbVuptonZmpNqzW6dEP0fyw4ugd7sYQLJCsEFr3Y9zH4JNaJ8XM5d2Zn0Nq4 igxOaS4u8IbSf43+8EKodwt9tupnQOBtdvyKizV+b89ZGMGulmJDBmzAcz703Qq5qGeW 1/Ov+YuPQJz12v8axhi3/Y+QApqKVyTPZ2fNQcxziSp8vvc9FaHtd2cv6B5H7KvPJpv2 Bni37G7fCBL6R8yGsovyWRCd+ycKxIQnmamVocyaTJlD2YwwmaNOj0AOpBAlHOs5CJHn SWRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=zoK+uaqYdPvRTyxvBGATMYRBDOz4yI8Dyl+cNoKPOUg=; b=xWT5Bj4/BgbLyEHRWlaErGhWLK3hkQ2+CQRU4LlSXv6TPrJKUeZtw7eHs4qyBvgaWR 4EgYzhAaF4zXPQMBv3J4U73uaQAD9jpvm35hTeyyH/xUE02wEOxp7bECNVm3lSIaMtuz w/VxZ+1j9ox1lExziB87xCUBjLpK+xQ5dw+EnmfOY9rjJoequSELGHcqjQXvUBCbJgx6 OQ5SKjsLSdmi/giiZfhte95Kv8QXQY81W5h7UUDF7pWN/j/MazU4qpsqT1ajCfKIaOnN PYyoNiLrMD/9yJGPa1Nr9ASAV9paFzA2F2GXk3CXbdDyNVSMFF+aOp+V8afeuZ3rKyq/ qdjQ== 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 t5si1629486jac.62.2021.09.08.05.23.26; Wed, 08 Sep 2021 05:23:51 -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 S1349145AbhIHK6k (ORCPT + 99 others); Wed, 8 Sep 2021 06:58:40 -0400 Received: from mx20.baidu.com ([111.202.115.85]:40958 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1351392AbhIHK6i (ORCPT ); Wed, 8 Sep 2021 06:58:38 -0400 Received: from BJHW-Mail-Ex10.internal.baidu.com (unknown [10.127.64.33]) by Forcepoint Email with ESMTPS id 7483FA3C4B878E04E3A6; Wed, 8 Sep 2021 18:57:29 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex10.internal.baidu.com (10.127.64.33) 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 18:57:29 +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 18:57:28 +0800 From: Cai Huoqing To: CC: Nishanth Menon , Tero Kristo , "Santosh Shilimkar" , Thomas Gleixner , "Marc Zyngier" , , Subject: [PATCH] irqchip/ti-sci-inta: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 18:57:22 +0800 Message-ID: <20210908105723.1831-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex15.internal.baidu.com (10.127.64.38) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex10_2021-09-08 18:57:29:431 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/irqchip/irq-ti-sci-inta.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-ti-sci-inta.c b/drivers/irqchip/irq-ti-sci-inta.c index 97f454ec376b..8eba08db33b2 100644 --- a/drivers/irqchip/irq-ti-sci-inta.c +++ b/drivers/irqchip/irq-ti-sci-inta.c @@ -650,7 +650,6 @@ static int ti_sci_inta_irq_domain_probe(struct platform_device *pdev) struct device_node *parent_node, *node; struct ti_sci_inta_irq_domain *inta; struct device *dev = &pdev->dev; - struct resource *res; int ret; node = dev_of_node(dev); @@ -694,8 +693,7 @@ static int ti_sci_inta_irq_domain_probe(struct platform_device *pdev) return PTR_ERR(inta->global_event); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - inta->base = devm_ioremap_resource(dev, res); + inta->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(inta->base)) return PTR_ERR(inta->base); -- 2.25.1