/* If a driver wishes to be notified about dock events, they can use this function to put a notifier block on the dock notifier list. this notifier call chain will be called after a dock event, but before hotplugging any new devices.  */
int register_dock_notifier(struct notifier_block *nb)
/* If a driver wishes to be notified about dock events, they can use this function to put a notifier block on the dock notifier list. this notifier call chain will be called after a dock event, but before hotplugging any new devices.  */
int register_dock_notifier(struct notifier_block *nb)
{
	if (!dock_station_count)
		return -ENODEV;
	return atomic_notifier_chain_register(&dock_notifier_list, nb);
}