aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/chip.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-14 14:09:19 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:23 -0500
commit3836ca08aad4575c120ccf328652f3873eea9063 (patch)
treed5aa92880d2a44836cb7f3decdae761d0a780068 /kernel/irq/chip.c
parent02725e7471b8dd58fa96f6604bdb5dde45405a2e (diff)
genirq: Consolidate set_chip_handler functions
No need to have separate functions if we have one plus inline wrappers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r--kernel/irq/chip.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 3ea6aecd99c0..2a36038b8f59 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -600,7 +600,7 @@ handle_percpu_irq(unsigned int irq, struct irq_desc *desc)
600} 600}
601 601
602void 602void
603__set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, 603__irq_set_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
604 const char *name) 604 const char *name)
605{ 605{
606 unsigned long flags; 606 unsigned long flags;
@@ -635,22 +635,14 @@ __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
635out: 635out:
636 irq_put_desc_busunlock(desc, flags); 636 irq_put_desc_busunlock(desc, flags);
637} 637}
638EXPORT_SYMBOL_GPL(__set_irq_handler); 638EXPORT_SYMBOL_GPL(__irq_set_handler);
639 639
640void 640void
641set_irq_chip_and_handler(unsigned int irq, struct irq_chip *chip, 641irq_set_chip_and_handler_name(unsigned int irq, struct irq_chip *chip,
642 irq_flow_handler_t handle)
643{
644 irq_set_chip(irq, chip);
645 __set_irq_handler(irq, handle, 0, NULL);
646}
647
648void
649set_irq_chip_and_handler_name(unsigned int irq, struct irq_chip *chip,
650 irq_flow_handler_t handle, const char *name) 642 irq_flow_handler_t handle, const char *name)
651{ 643{
652 irq_set_chip(irq, chip); 644 irq_set_chip(irq, chip);
653 __set_irq_handler(irq, handle, 0, name); 645 __irq_set_handler(irq, handle, 0, name);
654} 646}
655 647
656void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set) 648void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set)