diff mbox

[1/2] ACPI dock: support multiple ACPI dock devices

Message ID 1269244009.2205.1680.camel@rzhang1-desktop (mailing list archive)
State Accepted
Headers show

Commit Message

Zhang, Rui March 22, 2010, 7:46 a.m. UTC
None
diff mbox

Patch

Index: linux-2.6/drivers/acpi/dock.c
===================================================================
--- linux-2.6.orig/drivers/acpi/dock.c	2010-03-22 10:19:00.000000000 +0800
+++ linux-2.6/drivers/acpi/dock.c	2010-03-22 10:22:31.000000000 +0800
@@ -1025,13 +1025,10 @@ 
 static acpi_status
 find_dock(acpi_handle handle, u32 lvl, void *context, void **rv)
 {
-	acpi_status status = AE_OK;
-
 	if (is_dock(handle))
-		if (dock_add(handle) >= 0)
-			status = AE_CTRL_TERMINATE;
+		dock_add(handle);
 
-	return status;
+	return AE_OK;
 }
 
 static acpi_status