* [PATCH] irqchip/i8259: Convert to use irq_set_chained_handler_and_data
@ 2015-10-01 14:26 Axel Lin
2015-10-01 14:36 ` [tip:irq/core] " tip-bot for Axel Lin
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2015-10-01 14:26 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: Ralf Baechle, Jason Cooper, Marc Zyngier, linux-kernel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:irq/core] irqchip/i8259: Convert to use irq_set_chained_handler_and_data
2015-10-01 14:26 [PATCH] irqchip/i8259: Convert to use irq_set_chained_handler_and_data Axel Lin
@ 2015-10-01 14:36 ` tip-bot for Axel Lin
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Axel Lin @ 2015-10-01 14:36 UTC (permalink / raw)
To: linux-tip-commits
Cc: axel.lin, jason, tglx, hpa, marc.zyngier, ralf, linux-kernel,
mingo
Commit-ID: a51e80d002b63bbdaff3229f3ebf4fbb53c75c33
Gitweb: http://git.kernel.org/tip/a51e80d002b63bbdaff3229f3ebf4fbb53c75c33
Author: Axel Lin <axel.lin@ingics.com>
AuthorDate: Thu, 1 Oct 2015 22:26:44 +0800
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 1 Oct 2015 16:32:54 +0200
irqchip/i8259: Convert to use irq_set_chained_handler_and_data
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>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link: http://lkml.kernel.org/r/1443709604.12993.0.camel@ingics.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-01 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 14:26 [PATCH] irqchip/i8259: Convert to use irq_set_chained_handler_and_data Axel Lin
2015-10-01 14:36 ` [tip:irq/core] " tip-bot for Axel Lin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.