diff options
Diffstat (limited to 'arch/um/kernel/irq.c')
-rw-r--r-- | arch/um/kernel/irq.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index 71b8c947e5ef..00506c3d5d6e 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c | |||
@@ -297,6 +297,13 @@ unsigned int do_IRQ(int irq, struct uml_pt_regs *regs) | |||
297 | return 1; | 297 | return 1; |
298 | } | 298 | } |
299 | 299 | ||
300 | void um_free_irq(unsigned int irq, void *dev) | ||
301 | { | ||
302 | free_irq_by_irq_and_dev(irq, dev); | ||
303 | free_irq(irq, dev); | ||
304 | } | ||
305 | EXPORT_SYMBOL(um_free_irq); | ||
306 | |||
300 | int um_request_irq(unsigned int irq, int fd, int type, | 307 | int um_request_irq(unsigned int irq, int fd, int type, |
301 | irq_handler_t handler, | 308 | irq_handler_t handler, |
302 | unsigned long irqflags, const char * devname, | 309 | unsigned long irqflags, const char * devname, |
@@ -327,7 +334,6 @@ static void dummy(struct irq_data *d) | |||
327 | /* This is used for everything else than the timer. */ | 334 | /* This is used for everything else than the timer. */ |
328 | static struct irq_chip normal_irq_type = { | 335 | static struct irq_chip normal_irq_type = { |
329 | .name = "SIGIO", | 336 | .name = "SIGIO", |
330 | .release = free_irq_by_irq_and_dev, | ||
331 | .irq_disable = dummy, | 337 | .irq_disable = dummy, |
332 | .irq_enable = dummy, | 338 | .irq_enable = dummy, |
333 | .irq_ack = dummy, | 339 | .irq_ack = dummy, |
@@ -335,7 +341,6 @@ static struct irq_chip normal_irq_type = { | |||
335 | 341 | ||
336 | static struct irq_chip SIGVTALRM_irq_type = { | 342 | static struct irq_chip SIGVTALRM_irq_type = { |
337 | .name = "SIGVTALRM", | 343 | .name = "SIGVTALRM", |
338 | .release = free_irq_by_irq_and_dev, | ||
339 | .irq_disable = dummy, | 344 | .irq_disable = dummy, |
340 | .irq_enable = dummy, | 345 | .irq_enable = dummy, |
341 | .irq_ack = dummy, | 346 | .irq_ack = dummy, |