lkml.org 
[lkml]   [2004]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch] pc100pad driver
Date
From
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;[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.315 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site