Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp401758pxb; Wed, 8 Sep 2021 03:59:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4GkPYM9wl34//sYO31+FyN47cyUHRXam5dAKgMQcCr2mjO/vAFgTSqCG5bHuXpsR0oZSo X-Received: by 2002:a05:6402:b69:: with SMTP id cb9mr3200201edb.324.1631098762296; Wed, 08 Sep 2021 03:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631098762; cv=none; d=google.com; s=arc-20160816; b=hJefT+wfzu70QJ2WYW6M6BDKED3rLXqN5Q2WD6VgP7xRiEgmkEdnT2txE323rsj5Pz ezEusVWySQ8NpPnz9aXSderxKAUHTmlo0Gfh848xcgW0uLuvhWmHYCg3tRz5YitO7wSd huN8XkNW0NR/3V37JcsUHnFg2FG5gtqxJ8va4f6GDhgdUU/BmZpcEzyJw9ZOOPwj2FDX w+W9wG2cewIVJ57WODgRHtz0F37B6OZ+HOxsAyn9oT1n/H80CG1OEcJONpGxEO/x3kGh 7vQC7hrx9FXpX0NAymplL2SU1jum3EoyXEtuCY5HAW9usGnQLVp6zWby54Eq3QKqDQr6 XpHA== 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=b+LDbs0BS6X2f/CAeFFgcp62Lexv+nDNW6CMyGaDeEM=; b=DLgyV9X++fnVA58h0SHbNG/7dhXzOd8Wwmz5d4u3hf/fc1g0Ym4HuZ/FfzttVNoJgf zsP60WNdHIp8wxBiHXTkb3TPRKEEem9sYYo9FkECKOKJaqKFX5YRS6do6jtdW3gEA0gw zQIvncwLcLAjfhzBDezBpwh8w2oWWEd4YQlOOVZpQWxRQNJQ48hbnpUtC+Da3YuKqIoi E8Uqe1I7Ck1EApgFGQAzGp3wV3bKIEzm/U0NWmLnnDu2vwqwR6lqPovdfIwEHqQickQM kNqSURFN+LHGgwgzsp4j+azX/VjLaD/PseWwDk95kDJXaEdjjA17RVQ/9CcHdiV4HCba UbFQ== 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 5si1653984ejl.332.2021.09.08.03.58.58; Wed, 08 Sep 2021 03:59:22 -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 S1349132AbhIHK6Y (ORCPT + 99 others); Wed, 8 Sep 2021 06:58:24 -0400 Received: from mx21.baidu.com ([220.181.3.85]:40672 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1348945AbhIHK6X (ORCPT ); Wed, 8 Sep 2021 06:58:23 -0400 Received: from BJHW-Mail-Ex01.internal.baidu.com (unknown [10.127.64.11]) by Forcepoint Email with ESMTPS id 944D7EEFCA29336A46B0; Wed, 8 Sep 2021 18:57:14 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex01.internal.baidu.com (10.127.64.11) 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:14 +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:14 +0800 From: Cai Huoqing To: CC: Thomas Gleixner , Marc Zyngier , Subject: [PATCH] irqchip/irq-ts4800: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 18:57:07 +0800 Message-ID: <20210908105708.1729-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) 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-ts4800.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-ts4800.c b/drivers/irqchip/irq-ts4800.c index 34337a61b1ef..f032db23b30f 100644 --- a/drivers/irqchip/irq-ts4800.c +++ b/drivers/irqchip/irq-ts4800.c @@ -93,15 +93,13 @@ static int ts4800_ic_probe(struct platform_device *pdev) struct device_node *node = pdev->dev.of_node; struct ts4800_irq_data *data; struct irq_chip *irq_chip; - struct resource *res; int parent_irq; data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); if (!data) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - data->base = devm_ioremap_resource(&pdev->dev, res); + data->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(data->base)) return PTR_ERR(data->base); -- 2.25.1