aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-10-01 09:17:14 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-04 07:40:24 -0400
commitbd151412263a67b5321e9dd1d5b4bf6d96fdebf3 (patch)
tree7571b3eaf7ebc2ef200fb00688543f00a451c5f9 /kernel/irq/handle.c
parent21e2b8c62cca8f7dbec0c8c131ca1637e4a5670f (diff)
genirq: Provide config option to disable deprecated code
This option covers now the old chip functions and the irq_desc data fields which are moving to struct irq_data. More stuff will follow. Pretty handy for testing a conversion, whether something broke or not. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 8d0697f892a2..3fcef37154a1 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -309,7 +309,12 @@ static unsigned int noop_ret(struct irq_data *data)
309 return 0; 309 return 0;
310} 310}
311 311
312#ifndef CONFIG_GENERIC_HARDIRQS_NO_DEPRECATED
312static void compat_noop(unsigned int irq) { } 313static void compat_noop(unsigned int irq) { }
314#define END_INIT .end = compat_noop
315#else
316#define END_INIT
317#endif
313 318
314/* 319/*
315 * Generic no controller implementation 320 * Generic no controller implementation
@@ -321,7 +326,7 @@ struct irq_chip no_irq_chip = {
321 .irq_enable = noop, 326 .irq_enable = noop,
322 .irq_disable = noop, 327 .irq_disable = noop,
323 .irq_ack = ack_bad, 328 .irq_ack = ack_bad,
324 .end = compat_noop, 329 END_INIT
325}; 330};
326 331
327/* 332/*
@@ -337,7 +342,7 @@ struct irq_chip dummy_irq_chip = {
337 .irq_ack = noop, 342 .irq_ack = noop,
338 .irq_mask = noop, 343 .irq_mask = noop,
339 .irq_unmask = noop, 344 .irq_unmask = noop,
340 .end = compat_noop, 345 END_INIT
341}; 346};
342 347
343/* 348/*