/* Idle an omap_hwomd @oh. Intended to be called by omap_device_idle(). Returns -EINVAL on error or passes along the return value from _idle().  */
int omap_hwmod_idle(struct omap_hwmod *oh)
/* Idle an omap_hwomd @oh. Intended to be called by omap_device_idle(). Returns -EINVAL on error or passes along the return value from _idle().  */
int omap_hwmod_idle(struct omap_hwmod *oh)
{
	if (!oh)
		return -EINVAL;
	mutex_lock(&omap_hwmod_mutex);
	_idle(oh);
	mutex_unlock(&omap_hwmod_mutex);
	return 0;
}