Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp977197ybe; Fri, 6 Sep 2019 10:02:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuYazF/5BtQ3ZOUK4gi6Ub4nyI1+rhK3sAeXE9k1BNzfJgzUEmQTBIvoNQHD7/tgwfnPvu X-Received: by 2002:a62:e10f:: with SMTP id q15mr11902415pfh.34.1567789322394; Fri, 06 Sep 2019 10:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567789322; cv=none; d=google.com; s=arc-20160816; b=FOEr5/s1iYPWd2nqJYuSDmT29jdd3++q1+oJSEObOw3vYmLuroWYKWQK7FX9eMY3M5 oYeod+mFkOZe9wZiQ6clYg23N6Dhk2tNJeNzYO/BaU5yfpuAmI8/apKSar71r4smkPLC LkaIta5RqqhNmh1FB7iGwZWhrHoYG+3miMnuFGxzgfQ/3mnUpkcxUXsUiAIdrjVhj/2Y UggT8Lafy9C7LC9GQpQX1x9jRp3/cwyLo/EcX3eblR9ayGHhV6IT1KDF8/uRnlQUKYVI 3RWqZfrnjTvtCfqyTQE2MCJNQg0UPrXcr/ZtfeNMtKbqEFnJGMgdprj7nBdsh6/XrGjl H9dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=l/HR7zjScaF8i8ASreHXlA25nn1EyVnRv2fFDdck4r8=; b=rKjvB3nRjrvodXIwYXkdJ37+2DbBQ0VcpwDKcu2K9s7aW5rpUHPA1aC2xcL0ef06z1 S7GvspR0KGlCphH+pdlJJUn1TBcwM8vhXn+3a+qHBWf6M4azDa3qgemXzNrzGfCdzdzv 1I5tpHUZOErMYZT06SAPo8SH+pCxXH76/O2kfo8ne1TC/2d2aqwKa71bApydSKKZHM0N ieEF0XVd5apUuDJniSeJrH1PStSC1BHZsCHJ83ZhKEgsl/ApsrhETba1PNzlLIZ+hMB3 NaWWDdfepWbXkZ1kFP3O5kSJudXKt+jb+ITUG/oczztpDum4fdLxPyaIigIK0B1qaaQ/ wulg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si2646830pjr.34.2019.09.06.10.01.46; Fri, 06 Sep 2019 10:02:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388968AbfIFLKP (ORCPT + 99 others); Fri, 6 Sep 2019 07:10:15 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47012 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392228AbfIFLIX (ORCPT ); Fri, 6 Sep 2019 07:08:23 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1i6C6A-00072C-Qa; Fri, 06 Sep 2019 13:08:14 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 299391C0DE8; Fri, 6 Sep 2019 13:08:14 +0200 (CEST) Date: Fri, 06 Sep 2019 11:08:14 -0000 From: "tip-bot2 for Masahiro Yamada" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] irqchip/uniphier-aidet: Use devm_platform_ioremap_resource() Cc: Masahiro Yamada , Marc Zyngier , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20190905034932.12587-1-yamada.masahiro@socionext.com> References: <20190905034932.12587-1-yamada.masahiro@socionext.com> MIME-Version: 1.0 Message-ID: <156776809407.24167.7594401755357124629.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: e89327f659dd517f30b6232b1fabd6f6c6777c3e Gitweb: https://git.kernel.org/tip/e89327f659dd517f30b6232b1fabd6f6c6777c3e Author: Masahiro Yamada AuthorDate: Thu, 05 Sep 2019 12:49:32 +09:00 Committer: Marc Zyngier CommitterDate: Thu, 05 Sep 2019 09:28:13 +01:00 irqchip/uniphier-aidet: Use devm_platform_ioremap_resource() Replace the chain of platform_get_resource() and devm_ioremap_resource() with devm_platform_ioremap_resource(). This allows to remove the local variable for (struct resource *), and have one function call less. Signed-off-by: Masahiro Yamada Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20190905034932.12587-1-yamada.masahiro@socionext.com --- drivers/irqchip/irq-uniphier-aidet.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-uniphier-aidet.c b/drivers/irqchip/irq-uniphier-aidet.c index ed7b4f4..89121b3 100644 --- a/drivers/irqchip/irq-uniphier-aidet.c +++ b/drivers/irqchip/irq-uniphier-aidet.c @@ -166,7 +166,6 @@ static int uniphier_aidet_probe(struct platform_device *pdev) struct device_node *parent_np; struct irq_domain *parent_domain; struct uniphier_aidet_priv *priv; - struct resource *res; parent_np = of_irq_find_parent(dev->of_node); if (!parent_np) @@ -181,8 +180,7 @@ static int uniphier_aidet_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->reg_base = devm_ioremap_resource(dev, res); + priv->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->reg_base)) return PTR_ERR(priv->reg_base);