/* iterate over the dependent device list for this dock. If the dependent device matches the handle, return.  */
static struct dock_dependent_device* find_dock_dependent_device(struct dock_station *ds, acpi_handle handle)
/* iterate over the dependent device list for this dock. If the dependent device matches the handle, return.  */
static struct dock_dependent_device* find_dock_dependent_device(struct dock_station *ds, acpi_handle handle)
{
	struct dock_dependent_device *dd;
	spin_lock(&ds->dd_lock);
	list_for_each_entry(dd, &ds->dependent_devices, list) {
		if (handle == dd->handle) {
			spin_unlock(&ds->dd_lock);
			return dd;
		}
	}
	spin_unlock(&ds->dd_lock);
	return NULL;
}