diff options
Diffstat (limited to 'drivers/acpi/dock.c')
| -rw-r--r-- | drivers/acpi/dock.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 510a94524298..578b99b71d9c 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
| @@ -58,8 +58,8 @@ struct dock_dependent_device { | |||
| 58 | }; | 58 | }; |
| 59 | 59 | ||
| 60 | #define DOCK_DOCKING 0x00000001 | 60 | #define DOCK_DOCKING 0x00000001 |
| 61 | #define DOCK_EVENT KOBJ_DOCK | 61 | #define DOCK_EVENT 3 |
| 62 | #define UNDOCK_EVENT KOBJ_UNDOCK | 62 | #define UNDOCK_EVENT 2 |
| 63 | 63 | ||
| 64 | static struct dock_station *dock_station; | 64 | static struct dock_station *dock_station; |
| 65 | 65 | ||
| @@ -322,11 +322,10 @@ static void hotplug_dock_devices(struct dock_station *ds, u32 event) | |||
| 322 | 322 | ||
| 323 | static void dock_event(struct dock_station *ds, u32 event, int num) | 323 | static void dock_event(struct dock_station *ds, u32 event, int num) |
| 324 | { | 324 | { |
| 325 | struct acpi_device *device; | 325 | /* |
| 326 | 326 | * we don't do events until someone tells me that | |
| 327 | device = dock_create_acpi_device(ds->handle); | 327 | * they would like to have them. |
| 328 | if (device) | 328 | */ |
| 329 | kobject_uevent(&device->kobj, num); | ||
| 330 | } | 329 | } |
| 331 | 330 | ||
| 332 | /** | 331 | /** |
| @@ -627,6 +626,7 @@ static int dock_add(acpi_handle handle) | |||
| 627 | INIT_LIST_HEAD(&dock_station->hotplug_devices); | 626 | INIT_LIST_HEAD(&dock_station->hotplug_devices); |
| 628 | spin_lock_init(&dock_station->dd_lock); | 627 | spin_lock_init(&dock_station->dd_lock); |
| 629 | spin_lock_init(&dock_station->hp_lock); | 628 | spin_lock_init(&dock_station->hp_lock); |
| 629 | ATOMIC_INIT_NOTIFIER_HEAD(&dock_notifier_list); | ||
| 630 | 630 | ||
| 631 | /* Find dependent devices */ | 631 | /* Find dependent devices */ |
| 632 | acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, | 632 | acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, |
