[PATHC]mk712 touchscreen driver patch

From: Lee Nash (lee@compucrew.com)
Date: Mon Nov 18 2002 - 18:55:41 EST


Hey,
  I think this is a typo in the mk712 device driver. It would always
fail even though the region appears in /proc/ioports.

After this patch, the device works correctly.

Thanks,
-lee
(sorry about the double post)

Kernel version 2.4.19 stock

diff -ur linux-2.4.19.orig/drivers/char/mk712.c linux-
2.4.19/drivers/char/mk712.c
--- linux-2.4.19.orig/drivers/char/mk712.c Fri Aug 2 20:39:43 2002
+++ linux-2.4.19/drivers/char/mk712.c Mon Nov 18 13:09:59 2002
@@ -439,7 +439,7 @@
                 mk712_irq = irq;
 #endif

- if(request_region(mk712_io, 8, "mk712_touchscreen"))
+ if(!request_region(mk712_io, 8, "mk712_touchscreen"))
         {
                 printk("mk712: unable to get IO region\n");
                 return -ENODEV;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:25 EST