/* Enable an omap_hwomd @oh. Intended to be called by omap_device_enable(). Returns -EINVAL on error or passes along the return value from _enable().  */
int omap_hwmod_enable(struct omap_hwmod *oh)
/* Enable an omap_hwomd @oh. Intended to be called by omap_device_enable(). Returns -EINVAL on error or passes along the return value from _enable().  */
int omap_hwmod_enable(struct omap_hwmod *oh)
{
	int r;
	if (!oh)
		return -EINVAL;
	mutex_lock(&omap_hwmod_mutex);
	r = _enable(oh);
	mutex_unlock(&omap_hwmod_mutex);
	return r;
}