|
@@ -1901,20 +1901,10 @@ void omap_hwmod_write(u32 v, struct omap_hwmod *oh, u16 reg_offs)
|
|
*/
|
|
*/
|
|
int omap_hwmod_softreset(struct omap_hwmod *oh)
|
|
int omap_hwmod_softreset(struct omap_hwmod *oh)
|
|
{
|
|
{
|
|
- u32 v;
|
|
|
|
- int ret;
|
|
|
|
-
|
|
|
|
- if (!oh || !(oh->_sysc_cache))
|
|
|
|
|
|
+ if (!oh)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- v = oh->_sysc_cache;
|
|
|
|
- ret = _set_softreset(oh, &v);
|
|
|
|
- if (ret)
|
|
|
|
- goto error;
|
|
|
|
- _write_sysconfig(v, oh);
|
|
|
|
-
|
|
|
|
-error:
|
|
|
|
- return ret;
|
|
|
|
|
|
+ return _ocp_softreset(oh);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|