Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cadaf45 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9c7a4169
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
	}