diff options
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 9 |
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 | ||
312 | static void compat_noop(unsigned int irq) { } | 313 | static 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 | /* |