/* Set the SOFTRESET bit in @v for hwmod @oh. Returns -EINVAL upon error or 0 upon success.  */
static int _set_softreset(struct omap_hwmod *oh, u32 *v)
/* Set the SOFTRESET bit in @v for hwmod @oh. Returns -EINVAL upon error or 0 upon success.  */
static int _set_softreset(struct omap_hwmod *oh, u32 *v)
{
	if (!oh->sysconfig ||
	    !(oh->sysconfig->sysc_flags & SYSC_HAS_SOFTRESET))
		return -EINVAL;
	*v |= SYSC_SOFTRESET_MASK;
	return 0;
}