Skip to contentSkip to conversation

pc110pad.c small fix

PATCH New shaohua li 1 participant 1 message Oct 8, 2004 Input drivers

lore
Share & tools
lore

shaohua li

author
#0 lore raw

PATCH 1/1 pc110pad.c small fix

Hi,
'request_region' returns NULL if failed. The driver does the contrary.

Thanks,
Shaohua

===== drivers/input/mouse/pc110pad.c 1.9 vs edited =====

drivers/input/mouse/pc110pad.c +1 -1
@@ -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;