diff options
author | Andrew Morton <akpm@osdl.org> | 2006-07-01 07:36:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-01 12:56:04 -0400 |
commit | 0cadaf45bd7c19f0bef49d1eebfff38a046b9ba4 (patch) | |
tree | b2b053df10c8d32417dd9505be65fbe6c17480fc /drivers/pnp | |
parent | 9c7a41691f37a1538a88e5eb9b0b73df1f834542 (diff) |
[PATCH] pnp: suppress request_irq() warning
Suppress the "setup_irq: irq handler mismatch" coming out of pnp_check_irq():
failures are expected here.
Cc: <stable@kernel.org>
Cc: Santiago Garcia Mantinan <manty@manty.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/resource.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index e7cf6bec737e..9fefe563f8fc 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) | |||
395 | /* check if the resource is already in use, skip if the | 395 | /* check if the resource is already in use, skip if the |
396 | * device is active because it itself may be in use */ | 396 | * device is active because it itself may be in use */ |
397 | if(!dev->active) { | 397 | if(!dev->active) { |
398 | if (request_irq(*irq, pnp_test_handler, SA_INTERRUPT, "pnp", NULL)) | 398 | if (request_irq(*irq, pnp_test_handler, |
399 | SA_INTERRUPT|SA_PROBEIRQ, "pnp", NULL)) | ||
399 | return 0; | 400 | return 0; |
400 | free_irq(*irq, NULL); | 401 | free_irq(*irq, NULL); |
401 | } | 402 | } |