diff options
author | Len Brown <len.brown@intel.com> | 2007-08-12 00:20:33 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-08-12 00:20:33 -0400 |
commit | 6712a4fbb14a466d259e53a5314d8011ecab3d7b (patch) | |
tree | 5409e5f9be6099f7aff40400071385e61930585d | |
parent | d8dd3cbcf1b30c315a28f65cb719bb2d7105a317 (diff) | |
parent | 66b568218ab73be161dc109b913e6fa7dda44e16 (diff) |
Pull dock-bay into release branch
-rw-r--r-- | drivers/acpi/bay.c | 2 | ||||
-rw-r--r-- | drivers/acpi/dock.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 56a5b3fffeb3..6daf6088ac88 100644 --- a/drivers/acpi/bay.c +++ b/drivers/acpi/bay.c | |||
@@ -337,7 +337,7 @@ static void bay_notify(acpi_handle handle, u32 event, void *data) | |||
337 | char *envp[] = { event_string, NULL }; | 337 | char *envp[] = { event_string, NULL }; |
338 | 338 | ||
339 | bay_dprintk(handle, "Bay event"); | 339 | bay_dprintk(handle, "Bay event"); |
340 | sprintf(event_string, "BAY_EVENT=%d\n", event); | 340 | sprintf(event_string, "BAY_EVENT=%d", event); |
341 | kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); | 341 | kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp); |
342 | } | 342 | } |
343 | 343 | ||
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 6192c8be66df..1dabdf4c07b3 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -336,13 +336,13 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event) | |||
336 | static void dock_event(struct dock_station *ds, u32 event, int num) | 336 | static void dock_event(struct dock_station *ds, u32 event, int num) |
337 | { | 337 | { |
338 | struct device *dev = &dock_device->dev; | 338 | struct device *dev = &dock_device->dev; |
339 | char event_string[7]; | 339 | char event_string[13]; |
340 | char *envp[] = { event_string, NULL }; | 340 | char *envp[] = { event_string, NULL }; |
341 | 341 | ||
342 | if (num == UNDOCK_EVENT) | 342 | if (num == UNDOCK_EVENT) |
343 | sprintf(event_string, "UNDOCK"); | 343 | sprintf(event_string, "EVENT=undock"); |
344 | else | 344 | else |
345 | sprintf(event_string, "DOCK"); | 345 | sprintf(event_string, "EVENT=dock"); |
346 | 346 | ||
347 | /* | 347 | /* |
348 | * Indicate that the status of the dock station has | 348 | * Indicate that the status of the dock station has |