projects/linux·commit 0cadaf45

[PATCH] pnp: suppress request_irq() warning

0cadaf45 · Andrew Morton <[email protected]> · 2006-07-01 04:36:37 -07:00

Suppress the "setup_irq: irq handler mismatch" coming out of pnp_check_irq():
failures are expected here.

Cc: <[email protected]>
Cc: Santiago Garcia Mantinan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
0cadaf45bd7c19f0bef49d1eebfff38a046b9ba4
Parents
9c7a4169

Changes

1 files changed · +2 −1

FileStatusAddDelContent
drivers/pnp/resource.cmodified+2−1View file

drivers/pnp/resource.c

View file
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c
index e7cf6be..9fefe56 100644
--- a/drivers/pnp/resource.c
+++ b/drivers/pnp/resource.c
@@ -395,7 +395,8 @@ int pnp_check_irq(struct pnp_dev * dev, int idx)
/* check if the resource is already in use, skip if the
* device is active because it itself may be in use */
if(!dev->active) {
- if (request_irq(*irq, pnp_test_handler, SA_INTERRUPT, "pnp", NULL))
+ if (request_irq(*irq, pnp_test_handler,
+ SA_INTERRUPT|SA_PROBEIRQ, "pnp", NULL))
return 0;
free_irq(*irq, NULL);
}