/* Load the current value of the hwmod OCP_SYSCONFIG register into the struct omap_hwmod for later use. Returns -EINVAL if the hwmod has no OCP_SYSCONFIG register or 0 upon success.  */
static int _update_sysc_cache(struct omap_hwmod *oh)
/* Load the current value of the hwmod OCP_SYSCONFIG register into the struct omap_hwmod for later use. Returns -EINVAL if the hwmod has no OCP_SYSCONFIG register or 0 upon success.  */
static int _update_sysc_cache(struct omap_hwmod *oh)
{
	if (!oh->sysconfig) {
		WARN(!oh->sysconfig, "omap_hwmod: %s: cannot read "
		     "OCP_SYSCONFIG: not defined on hwmod\n", oh->name);
		return -EINVAL;
	}
	oh->_sysc_cache = omap_hwmod_readl(oh, oh->sysconfig->sysc_offs);
	if (!(oh->sysconfig->sysc_flags & SYSC_NO_CACHE))
		oh->_int_flags |= _HWMOD_SYSCONFIG_LOADED;
	return 0;
}