All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch]pc110pad.c small fix
@ 2004-10-08  8:05 shaohua li
  0 siblings, 0 replies; only message in thread
From: shaohua li @ 2004-10-08  8:05 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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

Thanks,
Shaohua

Signed-off-by: Li Shaohua <shaoh.li@gmail.com>
===== 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-08  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-08  8:05 [patch]pc110pad.c small fix shaohua li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.