Skip to contentSkip to conversation

Convert ipmi_kcs_intf.c to remove check_region().

PATCH New Bob Miller 1 participant 1 message May 2, 2003

lore
Share & tools
lore

Bob Miller

author
#0 lore raw

PATCH 1/1 Convert ipmi_kcs_intf.c to remove check_region().

Removed the now defunct check_mem_region() and check_region() calls. The driver doesn't use the memory/ioport address between the check_region() and request_region() calls so it is safe to just remove the check_region() call.

Signature · 37 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17


diff -Nru a/drivers/char/ipmi/ipmi_kcs_intf.c b/drivers/char/ipmi/ipmi_kcs_intf.c
--- a/drivers/char/ipmi/ipmi_kcs_intf.c	Fri May  2 09:52:22 2003
+++ b/drivers/char/ipmi/ipmi_kcs_intf.c	Fri May  2 09:52:22 2003
@@ -1118,24 +1118,14 @@
 	if (kcs_trydefaults) {
 #ifdef CONFIG_ACPI
 		if ((physaddr = acpi_find_bmc())) {
-			if (!check_mem_region(physaddr, 2)) {
-				rv = init_one_kcs(0, 
-						  0, 
-						  physaddr, 
-						  &(kcs_infos[pos]));
-				if (rv == 0)
-					pos++;
-			}
-		}
-#endif
-		if (!check_region(DEFAULT_IO_PORT, 2)) {
-			rv = init_one_kcs(DEFAULT_IO_PORT, 
-					  0, 
-					  0, 
-					  &(kcs_infos[pos]));
+			rv = init_one_kcs(0, 0, physaddr, &(kcs_infos[pos]));
 			if (rv == 0)
 				pos++;
 		}
+#endif
+		rv = init_one_kcs(DEFAULT_IO_PORT, 0, 0, &(kcs_infos[pos]));
+		if (rv == 0)
+			pos++;
 	}
 
 	if (kcs_infos[0] == NULL) {