History

[PATCH] request_irq(): remove warnings from irq probing

- Add new SA_PROBEIRQ which suppresses the new sharing-mismatch warning. Some drivers like to use request_irq() to find an unused interrupt slot. - Use it in i82365.c - Kill unused SA_PROBE.

Andrew Morton committed 20 years ago

Commit 13e87ec1 parent 47bb7894 files · +12 −7Browse files

Showing the changes to kernel (1 of 4 files). Show all

Unified · Split

kernel/irq/manage.c+4−2
@@ -246,8 +246,10 @@ int setup_irq(unsigned int irq, struct irqaction * new) · 245 unmodified lines
246 246
247mismatch:247mismatch:
248 spin_unlock_irqrestore(&desc->lock, flags);248 spin_unlock_irqrestore(&desc->lock, flags);
249 printk(KERN_ERR "%s: irq handler mismatch\n", __FUNCTION__);249 if (!(new->flags & SA_PROBEIRQ)) {
250 dump_stack();250 printk(KERN_ERR "%s: irq handler mismatch\n", __FUNCTION__);
251 dump_stack();
252 }
251 return -EBUSY;253 return -EBUSY;
252}254}
253 255