From: Andrew Morton Date: Sat, 1 Jul 2006 11:36:37 +0000 (-0700) Subject: [PATCH] pnp: suppress request_irq() warning X-Git-Tag: v2.6.18-rc1~193 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cadaf45bd7c19f0bef49d1eebfff38a046b9ba4;p=linux-2.6 [PATCH] pnp: suppress request_irq() warning Suppress the "setup_irq: irq handler mismatch" coming out of pnp_check_irq(): failures are expected here. Cc: Cc: Santiago Garcia Mantinan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index e7cf6bec73..9fefe563f8 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); }