dock.c (edf5bf34d40804fbef32f240a79b74ffc69a658b) dock.c (be27b3dcb02335ec093b81053fc8c84b32d3106e)
1/*
2 * dock.c - ACPI dock station driver
3 *
4 * Copyright (C) 2006 Kristen Carlson Accardi <kristen.c.accardi@intel.com>
5 *
6 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 189 unchanged lines hidden (view full) ---

198 void (*fixup)(struct acpi_device *);
199
200 fixup = adev->hp->fixup;
201 if (fixup) {
202 acpi_unlock_hp_context();
203 fixup(adev);
204 return;
205 }
1/*
2 * dock.c - ACPI dock station driver
3 *
4 * Copyright (C) 2006 Kristen Carlson Accardi <kristen.c.accardi@intel.com>
5 *
6 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 189 unchanged lines hidden (view full) ---

198 void (*fixup)(struct acpi_device *);
199
200 fixup = adev->hp->fixup;
201 if (fixup) {
202 acpi_unlock_hp_context();
203 fixup(adev);
204 return;
205 }
206 } else if (cb_type == DOCK_CALL_UEVENT) {
207 void (*uevent)(struct acpi_device *, u32);
208
209 uevent = adev->hp->uevent;
210 if (uevent) {
211 acpi_unlock_hp_context();
212 uevent(adev, event);
213 return;
214 }
206 } else {
207 int (*notify)(struct acpi_device *, u32);
208
215 } else {
216 int (*notify)(struct acpi_device *, u32);
217
209 notify = adev->hp->event;
218 notify = adev->hp->notify;
210 if (notify) {
211 acpi_unlock_hp_context();
212 notify(adev, event);
213 return;
214 }
215 }
216
217 no_context:

--- 619 unchanged lines hidden ---
219 if (notify) {
220 acpi_unlock_hp_context();
221 notify(adev, event);
222 return;
223 }
224 }
225
226 no_context:

--- 619 unchanged lines hidden ---