diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/manage.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index fa17855ca65a..dc4db3228dcd 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -555,9 +555,9 @@ int can_request_irq(unsigned int irq, unsigned long irqflags) | |||
555 | return 0; | 555 | return 0; |
556 | 556 | ||
557 | if (irq_settings_can_request(desc)) { | 557 | if (irq_settings_can_request(desc)) { |
558 | if (desc->action) | 558 | if (!desc->action || |
559 | if (irqflags & desc->action->flags & IRQF_SHARED) | 559 | irqflags & desc->action->flags & IRQF_SHARED) |
560 | canrequest =1; | 560 | canrequest = 1; |
561 | } | 561 | } |
562 | irq_put_desc_unlock(desc, flags); | 562 | irq_put_desc_unlock(desc, flags); |
563 | return canrequest; | 563 | return canrequest; |