diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-14 14:09:19 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:23 -0500 |
commit | 3836ca08aad4575c120ccf328652f3873eea9063 (patch) | |
tree | d5aa92880d2a44836cb7f3decdae761d0a780068 /kernel/irq/chip.c | |
parent | 02725e7471b8dd58fa96f6604bdb5dde45405a2e (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.c | 16 |
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 | ||
602 | void | 602 | void |
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, | |||
635 | out: | 635 | out: |
636 | irq_put_desc_busunlock(desc, flags); | 636 | irq_put_desc_busunlock(desc, flags); |
637 | } | 637 | } |
638 | EXPORT_SYMBOL_GPL(__set_irq_handler); | 638 | EXPORT_SYMBOL_GPL(__irq_set_handler); |
639 | 639 | ||
640 | void | 640 | void |
641 | set_irq_chip_and_handler(unsigned int irq, struct irq_chip *chip, | 641 | irq_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 | |||
648 | void | ||
649 | set_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 | ||
656 | void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set) | 648 | void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set) |