[patch] pc100pad driver

From: Li, Shaohua
Date: Wed Aug 04 2004 - 04:19:05 EST


Hi,
'request_region' returns 0 if the request failed, but the code
(pc110pad.c) just does the contrary.

Thanks,
Shaohua


===== 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;

Attachment: pc110pad.patch
Description: pc110pad.patch