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