Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp314207ybe; Wed, 4 Sep 2019 20:52:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBjQ94KorAnfJ9DHr7/zsZxGFefiyMVXRtbOEhKQ7wnsFP+FZ40pGbvR04XEA5mSN0Hd4Z X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr1132102plx.219.1567655533463; Wed, 04 Sep 2019 20:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567655533; cv=none; d=google.com; s=arc-20160816; b=volMdMzUYj2xSDx/selOFtn+eaUBfZ7sYHw4ciAHse54ciPky7RrzpGRKEPCczx1FV +ZYGX7lcglfwYYJeEKu7eUUZ5VxqGsQGatm3Soqb9RP/1CGZtJWmte7SU736ZpeG04yM A3s459FBjOfoCCn5+BZxPcpCwh5E7xxzaA/kwhFlyZssl4cHjhgf7CIIhbYe5qLwJ0x8 idUcz02hqTf0DbxjsyTLQF4bFs090wMyqqyBqzth4aRvQzpQg/4layWBeDkmviPqNrq0 ExuL32thQi3IvLqEz3oYWWso3uXDtyRuPbP7LGsJ1jGzaJyGZ6c6WgFxfmMDL9iOzOrk odrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=m+VFVDgsbj7vdDly5A6Xk6C0RvP7zfj9OdjMeGF3RbM=; b=YI5vmY9LwWeRJLeljOQzGKUhgTHDeCIDjNXLKV5H2xnNggcuHVH7y9RDJIzTcjJE92 wQ8rsj5eM42j2Oaa1bg8E91R+7LgsnjY/m+f7rfw0/ol1N6VHhBId9UZfsAGGlT2O00l K2wDj1gGbzTT4x7FDDo4P6wWWUGx1eYWbMzKcv4Sj2ocffTmHqN0624lubfMaPFgLp55 ImlAp/BvkIw2VMs2OZhW7I8DuRO1eOebMr0gm25g4V1qwFx2HG0nHXXDitIZT6kIimFN 7Yz+1j+1sTq7Y1kOfLD8LZ8RnlT5wWmMSdpE/CYymPZAejIk0bvt9uJLvmdyuL1fNDek tSFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XyM51OJW; 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 j185si615795pge.91.2019.09.04.20.51.57; Wed, 04 Sep 2019 20:52:13 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XyM51OJW; 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 S1730704AbfIEDue (ORCPT + 99 others); Wed, 4 Sep 2019 23:50:34 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:38925 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbfIEDue (ORCPT ); Wed, 4 Sep 2019 23:50:34 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x853naL4022436; Thu, 5 Sep 2019 12:49:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x853naL4022436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567655376; bh=m+VFVDgsbj7vdDly5A6Xk6C0RvP7zfj9OdjMeGF3RbM=; h=From:To:Cc:Subject:Date:From; b=XyM51OJWda3Wd0pahMvAKiSfBLO4I85fcNhBbIorH1tg1KsrSN/w+GAtiUETA0lOr VJEcO4+nZEWa+Hsfzghx66gPYhUs3kiaNScFuwgf1QL/ui5ISGp7HxQA8h6tEmOsxV 1Q/IM5OMaAmyCVu4D+qIYOEAijJXYyEcH13wWu+jYsvQWR2xpBiuGpm6jsEh7whMVg n9m5BbTj2W7VDkAGrIjYurD6/b1LH3/cr4tfpbU045p44JFn838L0h2xAKtT0rXzt6 P93ga3wjY8zwMnObhW1n9yksTk9+hsSRnyl3OK0d7pHLoEYmJU9U80zsORF7SLT5fg UyoLJD/8SnYQA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Marc Zyngier , Thomas Gleixner , Jason Cooper Cc: Masahiro Yamada , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] irqchip: uniphier-aidet: use devm_platform_ioremap_resource() Date: Thu, 5 Sep 2019 12:49:32 +0900 Message-Id: <20190905034932.12587-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 ed7b4f47ff3f..89121b39be26 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); -- 2.17.1