Skip to contentSkip to conversation

Add autoload info to dock driver

PATCH In review Thomas Renninger 1 participant 1 message Dec 7, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 Add autoload info to dock driver

From: Frank Seidel <[email protected]>

Add autoload info to dock driver

References: https://bugzilla.novell.com/show_bug.cgi?id=302482

---
 drivers/acpi/dock.c         |    6 ++++++
 include/acpi/acpi_drivers.h |    1 +
 2 files changed, 7 insertions(+)
drivers/acpi/dock.c +6 -0
Index: linux-2.6/drivers/acpi/dock.c
===================================================================
@@ -51,6 +51,12 @@ static struct atomic_notifier_head dock_
 static struct platform_device *dock_device;
 static char dock_device_name[] = "dock";
 
+static const struct acpi_device_id dock_device_ids[] = {
+	{"LNXDOCK", 0},
+	{"", 0},
+};
+MODULE_DEVICE_TABLE(acpi, dock_device_ids);
+
 struct dock_station {
 	acpi_handle handle;
 	unsigned long last_dock_time;
include/acpi/acpi_drivers.h +1 -0
Index: linux-2.6/include/acpi/acpi_drivers.h
===================================================================
@@ -48,6 +48,7 @@
 #define ACPI_BUTTON_HID_SLEEPF		"LNXSLPBN"
 #define ACPI_VIDEO_HID			"LNXVIDEO"
 #define ACPI_BAY_HID			"LNXIOBAY"
+#define ACPI_DOCK_HID			"LNXDOCK"
 
 /* --------------------------------------------------------------------------
                                        PCI