summaryrefslogtreecommitdiff
path: root/kernel/irq/chip.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-03 14:27:44 +0300
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 14:58:10 +0300
commit87923470c712dff00b101ffb6b6fbc27bd7a6df5 (patch)
tree35dc1a0adec4d00bbc872ce096c481cf0d69314a /kernel/irq/chip.c
parent4699923861513671d3f6ade8efb4e56a9a7ecadf (diff)
downloadlinux-87923470c712dff00b101ffb6b6fbc27bd7a6df5.tar.xz
genirq: Consolidate disable/enable
Create irq_disable/enable and use them to keep the flags consistent. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r--kernel/irq/chip.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 988fe7a24282..86c8e42f7fe4 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -200,7 +200,7 @@ int irq_startup(struct irq_desc *desc)
if (desc->irq_data.chip->irq_startup)
return desc->irq_data.chip->irq_startup(&desc->irq_data);
- desc->irq_data.chip->irq_enable(&desc->irq_data);
+ irq_enable(desc);
return 0;
}
@@ -211,6 +211,16 @@ void irq_shutdown(struct irq_desc *desc)
desc->irq_data.chip->irq_shutdown(&desc->irq_data);
}
+void irq_enable(struct irq_desc *desc)
+{
+ desc->irq_data.chip->irq_enable(&desc->irq_data);
+}
+
+void irq_disable(struct irq_desc *desc)
+{
+ desc->irq_data.chip->irq_disable(&desc->irq_data);
+}
+
/*
* default enable function
*/