linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sander Vanheule <sander@svanheule.net>
To: Marc Zyngier <maz@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	devicetree@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Birger Koblitz <mail@birger-koblitz.de>,
	Bert Vermeulen <bert@biot.com>, John Crispin <john@phrozen.org>,
	linux-kernel@vger.kernel.org,
	Sander Vanheule <sander@svanheule.net>
Subject: [PATCH v5 1/4] irqchip/realtek-rtl: use irq_domain_add_linear
Date: Mon, 14 Feb 2022 19:56:58 +0100	[thread overview]
Message-ID: <e4d352e0f8b4aa7fba958c6e07101ef7ee7ade6d.1644864700.git.sander@svanheule.net> (raw)
In-Reply-To: <cover.1644864700.git.sander@svanheule.net>

When using an offset of 0, irq_domain_add_simple is identical to
irq_domain_add_linear on DT-based systems, so use the latter instead.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
---
 drivers/irqchip/irq-realtek-rtl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-realtek-rtl.c b/drivers/irqchip/irq-realtek-rtl.c
index 50a56820c99b..14e049eed0f2 100644
--- a/drivers/irqchip/irq-realtek-rtl.c
+++ b/drivers/irqchip/irq-realtek-rtl.c
@@ -171,8 +171,7 @@ static int __init realtek_rtl_of_init(struct device_node *node, struct device_no
 	/* Disable all cascaded interrupts */
 	writel(0, REG(RTL_ICTL_GIMR));
 
-	domain = irq_domain_add_simple(node, 32, 0,
-				       &irq_domain_ops, NULL);
+	domain = irq_domain_add_linear(node, 32, &irq_domain_ops, NULL);
 
 	ret = map_interrupts(node, domain);
 	if (ret) {
-- 
2.35.1


  reply	other threads:[~2022-02-14 20:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-14 18:56 [PATCH v5 0/4] Per-parent domains for realtek-rtl IRQ driver Sander Vanheule
2022-02-14 18:56 ` Sander Vanheule [this message]
2022-02-14 18:56 ` [PATCH v5 2/4] dt-bindings: interrupt-controller: realtek,rtl-intc: require parents Sander Vanheule
2022-02-14 18:57 ` [PATCH v5 3/4] irqchip/realtek-rtl: use parent interrupts Sander Vanheule
2022-02-14 18:57 ` [PATCH v5 4/4] irqchip/realtek-rtl: use per-parent domains Sander Vanheule
2022-02-15 12:09 ` [PATCH v5 0/4] Per-parent domains for realtek-rtl IRQ driver Marc Zyngier
2022-02-28 12:57   ` Sander Vanheule

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e4d352e0f8b4aa7fba958c6e07101ef7ee7ade6d.1644864700.git.sander@svanheule.net \
    --to=sander@svanheule.net \
    --cc=bert@biot.com \
    --cc=devicetree@vger.kernel.org \
    --cc=john@phrozen.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mail@birger-koblitz.de \
    --cc=maz@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).