diff options
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/irq.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index 70c2d625b070..ba11ccd6a8a3 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c | |||
@@ -347,14 +347,15 @@ int um_request_irq(unsigned int irq, int fd, int type, | |||
347 | { | 347 | { |
348 | int err; | 348 | int err; |
349 | 349 | ||
350 | err = request_irq(irq, handler, irqflags, devname, dev_id); | 350 | if (fd != -1) { |
351 | if (err) | ||
352 | return err; | ||
353 | |||
354 | if (fd != -1) | ||
355 | err = activate_fd(irq, fd, type, dev_id); | 351 | err = activate_fd(irq, fd, type, dev_id); |
356 | return err; | 352 | if (err) |
353 | return err; | ||
354 | } | ||
355 | |||
356 | return request_irq(irq, handler, irqflags, devname, dev_id); | ||
357 | } | 357 | } |
358 | |||
358 | EXPORT_SYMBOL(um_request_irq); | 359 | EXPORT_SYMBOL(um_request_irq); |
359 | EXPORT_SYMBOL(reactivate_fd); | 360 | EXPORT_SYMBOL(reactivate_fd); |
360 | 361 | ||