Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1237453

[PATCH] irqchip/i8259: Convert to use irq_set_chained_handler_and_data

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Axel Lin <axel.lin@ingics.com>
Newsgroups linux.kernel
Subject [PATCH] irqchip/i8259: Convert to use irq_set_chained_handler_and_data
Date Thu, 01 Oct 2015 16:30:03 +0200
Message-ID <qeN1V-795-29@gated-at.bofh.it> (permalink)
X-Original-To Thomas Gleixner <tglx@linutronix.de>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=uoNRyQCu8/6lmqge1KPg/LE2srVeyEwBtZr7Z7JcM88=; b=mp+h78cRh6ZI/wK3nkgT5G2WbWGWs5SSaW8TXx+hg1PyaI9a/vSL5k8IJEgRav1nmC Gkq0kIVUDMkJ4IMtk7Lplh9w3LuSench9w/8a5u+n1nkV5Jmqn4EXzb+OKo8UWB20LDx OdHg+liY2NsHn0XFJ88UWum+nhkuknMW9JqdcCjRgZmCT+TjJwMOMJNaMUbiz4PwamUu irA9kSUrMISxxRJrGsrvhYgd/ZZmo9WPpqZcklZzclVH8c4DRTh6/kLUXKl34tYJLKdj fnlci93fT8gtJwayiuAjuog+/R3aTpnKYMgGvTR1/E/xBYU1OM+8vzFBIax5ABlg6g85 /K+Q==
X-Gm-Message-State ALoCoQlonbLvBE2zkrBeXlIVQM8/TggLjeL857i3u/yKQ6O1Ykx0z5FUuc8jQ5EMe9JlOIPwyNLK
X-Received by 10.66.119.135 with SMTP id ku7mr12460525pab.21.1443709608781; Thu, 01 Oct 2015 07:26:48 -0700 (PDT)
Content-Type text/plain; charset="UTF-8"
X-Mailer Evolution 3.12.11-0ubuntu3
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
X-Original-Cc Ralf Baechle <ralf@linux-mips.org>, Jason Cooper <jason@lakedaemon.net>, Marc Zyngier <marc.zyngier@arm.com>, linux-kernel@vger.kernel.org
X-Original-Date Thu, 01 Oct 2015 22:26:44 +0800
X-Original-Message-ID <1443709604.12993.0.camel@ingics.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1237453

Show key headers only | View raw


Chained irq handlers usually set up handler data as well. We now have
a function to set both under irq_desc->lock. Replace the two calls
with one.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/irqchip/irq-i8259.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c
index e484fd2..6b304eb 100644
--- a/drivers/irqchip/irq-i8259.c
+++ b/drivers/irqchip/irq-i8259.c
@@ -377,8 +377,8 @@ int __init i8259_of_init(struct device_node *node, struct device_node *parent)
 	}
 
 	domain = __init_i8259_irqs(node);
-	irq_set_handler_data(parent_irq, domain);
-	irq_set_chained_handler(parent_irq, i8259_irq_dispatch);
+	irq_set_chained_handler_and_data(parent_irq, i8259_irq_dispatch,
+					 domain);
 	return 0;
 }
 IRQCHIP_DECLARE(i8259, "intel,i8259", i8259_of_init);
-- 
2.1.4



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] irqchip/i8259: Convert to use  irq_set_chained_handler_and_data Axel Lin <axel.lin@ingics.com> - 2015-10-01 16:30 +0200
  [tip:irq/core] irqchip/i8259:   Convert to use irq_set_chained_handler_and_data tip-bot for Axel Lin <tipbot@zytor.com> - 2015-10-01 16:40 +0200

csiph-web