All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] please comment on this patch
@ 2004-06-16  2:57 Kristen Carlson
  2004-06-16 14:12 ` Matthew Wilcox
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Kristen Carlson @ 2004-06-16  2:57 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1785 bytes --]

For removing check_region from drivers/char/esp.c

 
--- linux-2.6.6.kc/drivers/char/esp.orig	2004-06-15 11:40:24.643063272 -0700
+++ linux-2.6.6.kc/drivers/char/esp.c	2004-06-15 11:43:27.223306856 -0700
@@ -2369,9 +2369,21 @@ static _INLINE_ int autoconfig(struct es
 	/*
 	 * Check for ESP card
 	 */
+	if (ports && (ports->port == (info->port - 8))) {
+		release_region(*region_start,
+			       info->port - *region_start);
+	} else
+		*region_start = info->port;
+
+	if (!request_region(*region_start,
+		       info->port - *region_start + 8,
+		       "esp serial"))
+	{
+		restore_flags(flags);
+		return -EIO;
+	}
 
-	if (!check_region(info->port, 8) && 
-	    serial_in(info, UART_ESI_BASE) == 0xf3) {
+	if (serial_in(info, UART_ESI_BASE) == 0xf3) {
 		serial_out(info, UART_ESI_CMD1, 0x00);
 		serial_out(info, UART_ESI_CMD1, 0x01);
 
@@ -2387,19 +2399,6 @@ static _INLINE_ int autoconfig(struct es
 					info->irq = 4;
 			}
 
-			if (ports && (ports->port == (info->port - 8))) {
-				release_region(*region_start,
-					       info->port - *region_start);
-			} else
-				*region_start = info->port;
-
-			if (!request_region(*region_start,
-				       info->port - *region_start + 8,
-				       "esp serial"))
-			{
-				restore_flags(flags);
-				return -EIO;
-			}
 
 			/* put card in enhanced mode */
 			/* this prevents access through */
@@ -2410,8 +2409,11 @@ static _INLINE_ int autoconfig(struct es
 			serial_out(info, UART_ESI_CMD1, ESI_WRITE_UART);
 			serial_out(info, UART_ESI_CMD2, UART_MCR);
 			serial_out(info, UART_ESI_CMD2, 0x00);
-		}
-	}
+		} 
+	} 
+	if (!port_detected)
+		release_region(*region_start,
+				info->port - *region_start + 8);
 
 	restore_flags(flags);
 	return (port_detected);


Thanks!
Kristen


-- 
WWXD (What Would Xena Do?) 


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-06-18  9:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-16  2:57 [Kernel-janitors] please comment on this patch Kristen Carlson
2004-06-16 14:12 ` Matthew Wilcox
2004-06-16 16:48 ` Kristen Carlson
2004-06-17  3:38 ` Kristen Carlson
2004-06-17  5:24 ` Arnaldo Carvalho de Melo
2004-06-17 12:51 ` Matthew Wilcox
2004-06-18  1:41 ` Nicolas Kaiser
2004-06-18  9:43 ` maximilian attems

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.