]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
pnp supress request_irq() warning, fwd from akpm
authorChris Wright <chrisw@sous-sol.org>
Thu, 6 Jul 2006 19:32:29 +0000 (12:32 -0700)
committerChris Wright <chrisw@sous-sol.org>
Thu, 6 Jul 2006 19:32:29 +0000 (12:32 -0700)
queue-2.6.17/pnp-suppress-request_irq-warning.patch [new file with mode: 0644]
queue-2.6.17/series

diff --git a/queue-2.6.17/pnp-suppress-request_irq-warning.patch b/queue-2.6.17/pnp-suppress-request_irq-warning.patch
new file mode 100644 (file)
index 0000000..a83aecd
--- /dev/null
@@ -0,0 +1,29 @@
+From 0cadaf45bd7c19f0bef49d1eebfff38a046b9ba4 Mon Sep 17 00:00:00 2001
+From: Andrew Morton <akpm@osdl.org>
+Date: Sat, 1 Jul 2006 04:36:37 -0700
+Subject: 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>
+Signed-off-by: Chris Wright <chrisw@sous-sol.org>
+---
+ drivers/pnp/resource.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- linux-2.6.17.3.orig/drivers/pnp/resource.c
++++ linux-2.6.17.3/drivers/pnp/resource.c
+@@ -396,7 +396,8 @@ int pnp_check_irq(struct pnp_dev * dev, 
+       /* 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);
+       }
index b79e3473f90fcbd6109ea1c39aa3c428291e3382..127cabb470f7dbc62e6b40d4db202fc07d17a8e6 100644 (file)
@@ -6,3 +6,4 @@ memory-hotplug-solve-config-broken-undefined-reference-to-online_page.patch
 dvb-fix-budget-av-frontend-detection.patch
 dvb-fix-ci-on-old-knc1-dvbc-cards.patch
 dvb-fix-ci-interface-on-pro-knc1-cards.patch
+pnp-suppress-request_irq-warning.patch