From patchwork Thu Sep 5 03:49:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 173116 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp184379ilq; Wed, 4 Sep 2019 20:50:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyt/n/pMbqD4lOxKioJey45i013s+r8IuQlBDqBNFuySBQTn0JjTUxWdVKJEANp5de7H3ej X-Received: by 2002:a63:6947:: with SMTP id e68mr1275804pgc.60.1567655435836; Wed, 04 Sep 2019 20:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567655435; cv=none; d=google.com; s=arc-20160816; b=WxOZYm6j/7449Sa7R6q76TlfAeYrvzVkYuzUBokUSBke48WbgPofS1b6aU4ybomW6x QG7x3Q5O6W0A1N/dvEAz3WfE7ToDLdBZT0ftTq3klOu095LRWW1AlXTduR/omlHHy7Uo ErzBDTLzD9annJ+vfr9QjhJRrPiB7tCf3cf9PEjrT/PVzfIu2TbvA0Gq0dXxJpXai2Ef UDkvWH2xVRW0tFuFpSNj/sWU/CazaDl+lt5V5l6sWXtIaEXsD5nOuc1nM/ajiSxYtFQS Y/+U2I39umz2pe3VQSNdhwU9qg+1VyNyqB2MUeycLvBD2ebJr3Zu6Ds5v7uM4mZjsH1a d14g== 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 o2si843405pfg.136.2019.09.04.20.50.35; Wed, 04 Sep 2019 20:50:35 -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 S1730741AbfIEDue (ORCPT + 28 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(-) -- 2.17.1 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);