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
246246
247247 mismatch:
248248 spin_unlock_irqrestore(&desc->lock, flags);
249− printk(KERN_ERR "%s: irq handler mismatch\n", __FUNCTION__);
250− dump_stack();
249+ if (!(new->flags & SA_PROBEIRQ)) {
250+ printk(KERN_ERR "%s: irq handler mismatch\n", __FUNCTION__);
251+ dump_stack();
252+ }
251253 return -EBUSY;
252254 }
253255