[patch]pc110pad.c small fix
From: shaohua li
Date: Fri Oct 08 2004 - 03:08:23 EST
Hi,
'request_region' returns NULL if failed. The driver does the contrary.
Thanks,
Shaohua
Signed-off-by: Li Shaohua <shaoh.li@xxxxxxxxx>
===== drivers/input/mouse/pc110pad.c 1.9 vs edited =====
--- 1.9/drivers/input/mouse/pc110pad.c 2004-07-27 05:27:05 +08:00
+++ edited/drivers/input/mouse/pc110pad.c 2004-08-04 16:56:17 +08:00
@@ -109,7 +109,7 @@ static int pc110pad_open(struct input_de
static int __init pc110pad_init(void)
{
- if (request_region(pc110pad_io, 4, "pc110pad"))
+ if (!request_region(pc110pad_io, 4, "pc110pad"))
{
printk(KERN_ERR "pc110pad: I/O area %#x-%#x in use.\n",
pc110pad_io, pc110pad_io + 4);
return -EBUSY;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/