Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1791222pxb; Wed, 20 Oct 2021 11:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeFYIwZdb1LZkPTJmhnCysmDzDA8bmrg1/LXlXSxfTvACJPoHLogjNzLWVP2W+tTOE6FXC X-Received: by 2002:a63:4d56:: with SMTP id n22mr780453pgl.414.1634755738233; Wed, 20 Oct 2021 11:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634755738; cv=none; d=google.com; s=arc-20160816; b=wa0H7tCGNEjTl10YSrSomWelH2Q8ZFjADWINmd9jl0yNxbvwy8KDY2GkFW+avRqTQM Yu+M+7aEybulIWx6AbcNE6bMw68n1PpS2W/5HZ/o8B9132VmTtH6XoLSaXYhBsGds6rR Oha3bQ4j8BvMYqWR2NB4XZJnUV5egu+1lE6HsfIEB9a2O0s9TUW5eDnLaFSREmuwYGBW 0QSnPoWdn3pXmAgSTmkqqcgqzOWW6H+n3/Go37ngEvQKKy3yvgNzthYZIhY3KyDL2jMp 4sUuFSKptEuO90xE8jgSM4MIxz/CW/1ATwmg7JEfr2No8TzP16KtGbFIizE6IvIhVKNN lKsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=M+PwM5jodu23n7ePPQzUdNvb7957Stx5i5eTltdjZAU=; b=ThxnWZbvuUH014Gns81HLfxIhmCMnmiPYshLj+a/8X3t6QjAWp+A89XdGCMrQC/BFn Ei7oSIqjGVAEfYCqh8Pb5NnSxLBoYicCybJ7zDO/zrSzrAIZzMxRzWJh1HVGJigq8xEE LMWgBmFKdPpaynjPUJcWJF0zOlqwshHbkuBOCdHX4nXmojKHWYBEREgUsjybgdVI+zut cs43HGWL7n0q9SFqdtR3cz40H51aAqgAXzz0p0Gs6NnXhmFYetniBYBmcjuPTFB951Vr PHa2CULUUvTwbcZ7B2krMllLM5+74cwOhVjv3Ldt2UAKDnTm+zkhxTKdKEbEWHoJwxDS uoCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tJexK1i7; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a7si4082289pld.351.2021.10.20.11.48.44; Wed, 20 Oct 2021 11:48:58 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tJexK1i7; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231459AbhJTStn (ORCPT + 99 others); Wed, 20 Oct 2021 14:49:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:54636 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231326AbhJTSta (ORCPT ); Wed, 20 Oct 2021 14:49:30 -0400 Date: Wed, 20 Oct 2021 18:47:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1634755635; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M+PwM5jodu23n7ePPQzUdNvb7957Stx5i5eTltdjZAU=; b=tJexK1i7o/0PkTW8AsJrVROwq4QLgUL+8HPzyYyrQ17wfgMHjpA58Vr0dcvblJBn9CBVF6 ctgoFcxofCHCKvgHto4gN2aYESc6GeOVIEYfwG12AueGM9u4Z1/ab2lHEhKiLRWegqnyMr NsTOmaVTCqVn+beXWNMq/8v81NdUGr31k0uGytkV1mj9UDzejuEG+uNgczlaOQCYyz3R0g DMOJBRqa2Lj9ZalqoGxWIqyC3rd3T5wvb2CZ3kmdLKd50m1w+yxT/6Al+zT1Mr5ETAsF7X WqwDLXjsglqnPxuxddBdCkirv+62+VUVze3TF84adiBDsez0YAQ/1gFhcUFc1g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1634755635; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M+PwM5jodu23n7ePPQzUdNvb7957Stx5i5eTltdjZAU=; b=tVHA7BUh3p82LB189tLdFmx4YtLluKdPcX8sCmIHKiJbr5GCOmFxEEMKRh72XGFFTsrwj2 h9DuXQL/LJtUN7AA== From: "irqchip-bot for Cai Huoqing" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/irq-ts4800: Make use of the helper function devm_platform_ioremap_resource() Cc: Cai Huoqing , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20210908105708.1729-1-caihuoqing@baidu.com> References: <20210908105708.1729-1-caihuoqing@baidu.com> MIME-Version: 1.0 Message-ID: <163475563405.25758.9973716221865327375.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 2687bf8d0d34e70a986e0303702deac491689a38 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/2687bf8d0d34e70a986e0303702deac491689a38 Author: Cai Huoqing AuthorDate: Wed, 08 Sep 2021 18:57:07 +08:00 Committer: Marc Zyngier CommitterDate: Tue, 19 Oct 2021 11:23:44 +01:00 irqchip/irq-ts4800: Make use of the helper function devm_platform_ioremap_resource() Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20210908105708.1729-1-caihuoqing@baidu.com --- 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 34337a6..f032db2 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);