/* If a driver would like to perform a hotplug operation after a dock event, they can register an acpi_notifiy_handler to be called by the dock driver after _DCK is executed.  */
int register_hotplug_dock_device(acpi_handle handle, struct acpi_dock_ops *ops, void *context)
/* If a driver would like to perform a hotplug operation after a dock event, they can register an acpi_notifiy_handler to be called by the dock driver after _DCK is executed.  */
int register_hotplug_dock_device(acpi_handle handle, struct acpi_dock_ops *ops, void *context)
{
	struct dock_dependent_device *dd;
	struct dock_station *dock_station;
	int ret = -EINVAL;
	if (!dock_station_count)
		return -ENODEV;
	list_for_each_entry(dock_station, &dock_stations, sibling) {
		dd = find_dock_dependent_device(dock_station, handle);
		if (dd) {
			dd->ops = ops;
			dd->context = context;
			dock_add_hotplug_device(dock_station, dd);
			ret = 0;
		}
	}
	return ret;
}