summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/dock.c
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen.c.accardi@intel.com>2007-05-10 00:09:12 +0200
committerLen Brown <len.brown@intel.com>2007-05-10 09:30:41 +0200
commit9ef2a9a9f08722998540ed2ff38bccd0c54344c8 (patch)
tree30bec35d39591562e861c686520883f21c3e58a4 /drivers/acpi/dock.c
parentACPI: dock: add immediate_undock option (diff)
downloadlinux-9ef2a9a9f08722998540ed2ff38bccd0c54344c8.tar.xz
linux-9ef2a9a9f08722998540ed2ff38bccd0c54344c8.zip
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> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r--drivers/acpi/dock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 98ec717b14cf..4efc12cf6173 100644
--- a/drivers/acpi/dock.c
+++ b/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);