Skip to contentSkip to conversation

mk712 driver patch

PATCH Lee Nash 1 participant 2 messages Nov 18, 2002 Char and misc drivers

lore
Share & tools
lore

Lee Nash

author
#0 lore raw

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

diff -ur linux-2.4.19.orig/drivers/char/mk712.c linux- 2.4.19/drivers/char/mk712.c

drivers/char/mk712.c +1 -1
@@ -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;
author
#1 lore raw

[PATHC]mk712 touchscreen driver patch

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

drivers/char/mk712.c +1 -1
@@ -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;