Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1357690imm; Tue, 22 May 2018 02:46:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpIvUj82k1ruJN1Uy3UGaX663gyPUPP8AirivPCwLWNyVeUo0cnDapy61qVtpq1N4PUNNVZ X-Received: by 2002:a17:902:8685:: with SMTP id g5-v6mr23467234plo.302.1526982417301; Tue, 22 May 2018 02:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526982417; cv=none; d=google.com; s=arc-20160816; b=pFuha4kZ1Fj5EacA30gjaioxNGMijdIG3RY9kiCvog8ec/9cWORof6JGCGSCBnOOET FfPx2Vt2jhP6jOCOKtV+pKSWoYGZpOfr8oRWs9IHbsymouuHJDpiINmK/q3tg4XaMhHX v2hs/2tBfQumWKWNSLdVRDaJczVRNo7gAGW1ioQSvbrD383qagLSZDrOaCIDr6SqC6b8 22TtdIvmYT9ddEBdJToW8PLEDJEc+JLrTOSOiLUSkS6KlTEkVCXDyTXxmBkO6MGkv7jD FQkRXkgU/ln+Eym5mLBPofhmMw2RAQGq/enCCtOpFJ7FQCgH1i8VORMVXT0kNvFyfKoT xMZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6YA4pNY83aeVqo/qtTjHjD6T3d8P36Gaabvv4fe88bc=; b=ecsAkxQlLpLhBgWurpNmKZPESZHjErj/cQFxowWmdodpu8zoETqRoUT+y3NUg9vfFE mV2cn+Vn0oS6RxjwQveKzG/mNUTGznG6Sy7FfKBh6AeOfqTvpGXOKiNyVbC5h6qFnkQt oul4XuGCPj6M6OXNSPC+ZK3JF7YcrxkGQJGD+MABIzGwCZ4WwfPGQvsbX+pTHbmdsqNB GpkXeWPtKZHHc33TExfj2v78luh/3mhv2rvIqj5LOna1I7gqHt3gzfLHeoYjhZnHmf/4 4wZkqlNbZjaRZIfkEBocNLx3SsS697+fdZlOEvGvRW0MY7HdP5W1fKbNlF/Tr3Cx72Nw WchA== 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 m12-v6si12592764pgn.215.2018.05.22.02.46.43; Tue, 22 May 2018 02:46:57 -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 S1751821AbeEVJoe (ORCPT + 99 others); Tue, 22 May 2018 05:44:34 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49698 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751351AbeEVJk6 (ORCPT ); Tue, 22 May 2018 05:40:58 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1149D20787; Tue, 22 May 2018 11:40:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 8730C207AC; Tue, 22 May 2018 11:40:45 +0200 (CEST) From: Miquel Raynal To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Catalin Marinas , Will Deacon , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Cc: Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Antoine Tenart , Maxime Chevallier , Nadav Haklai , Haim Boot , Hanna Hawa , linux-kernel@vger.kernel.org, Miquel Raynal Subject: [PATCH v2 06/16] irqchip/irq-mvebu-icu: make irq_domain local Date: Tue, 22 May 2018 11:40:32 +0200 Message-Id: <20180522094042.24770-7-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180522094042.24770-1-miquel.raynal@bootlin.com> References: <20180522094042.24770-1-miquel.raynal@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make the current MSI irq_domain local to ease the split between ICU platform device code and NSR platform device code. Signed-off-by: Miquel Raynal Reviewed-by: Thomas Petazzoni --- drivers/irqchip/irq-mvebu-icu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-icu.c b/drivers/irqchip/irq-mvebu-icu.c index 3694c0d73c0d..607948870a14 100644 --- a/drivers/irqchip/irq-mvebu-icu.c +++ b/drivers/irqchip/irq-mvebu-icu.c @@ -41,7 +41,6 @@ struct mvebu_icu { struct irq_chip irq_chip; struct regmap *regmap; - struct irq_domain *domain; struct device *dev; atomic_t initialized; }; @@ -218,6 +217,7 @@ static int mvebu_icu_probe(struct platform_device *pdev) struct mvebu_icu *icu; struct device_node *node = pdev->dev.of_node; struct device_node *gicp_dn; + struct irq_domain *irq_domain; struct resource *res; void __iomem *regs; int i; @@ -282,11 +282,11 @@ static int mvebu_icu_probe(struct platform_device *pdev) regmap_write(icu->regmap, ICU_INT_CFG(i), 0); } - icu->domain = + irq_domain = platform_msi_create_device_domain(&pdev->dev, ICU_MAX_IRQS, mvebu_icu_write_msg, &mvebu_icu_domain_ops, icu); - if (!icu->domain) { + if (!irq_domain) { dev_err(&pdev->dev, "Failed to create ICU domain\n"); return -ENOMEM; } -- 2.14.1