* [PATCH] ACPI: dock: unsuppress uevents
@ 2007-05-09 22:09 Kristen Carlson Accardi
0 siblings, 0 replies; only message in thread
From: Kristen Carlson Accardi @ 2007-05-09 22:09 UTC (permalink / raw)
To: lenb; +Cc: linux-acpi, linux-kernel
ACPI: dock: unsuppress uevents
Platform devices may not send uevents by default - override the setting
so that we can send uevents on dock/undock.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Index: 2.6-git/drivers/acpi/dock.c
===================================================================
--- 2.6-git.orig/drivers/acpi/dock.c
+++ 2.6-git/drivers/acpi/dock.c
@@ -751,6 +751,9 @@ static int dock_add(acpi_handle handle)
return PTR_ERR(dock_device);
}
+ /* we want the dock device to send uevents */
+ dock_device->dev.uevent_suppress = 0;
+
ret = device_create_file(&dock_device->dev, &dev_attr_docked);
if (ret) {
printk("Error %d adding sysfs file\n", ret);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-09 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-09 22:09 [PATCH] ACPI: dock: unsuppress uevents Kristen Carlson Accardi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®