Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216848
b: refs/heads/master
c: 9b57911
h: refs/heads/master
v: v3
  • Loading branch information
Liam Girdwood authored and Paul Walmsley committed Sep 21, 2010
1 parent aa5487b commit 10be097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3827f9492bdff045ae57fe67e65ce7e259ed4219
refs/heads/master: 9b579114efc4bd00532de33c783b4cb4638910ff
6 changes: 2 additions & 4 deletions trunk/arch/arm/mach-omap2/omap_hwmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -1434,19 +1434,17 @@ void omap_hwmod_ocp_barrier(struct omap_hwmod *oh)
*
* Under some conditions, a driver may wish to reset the entire device.
* Called from omap_device code. Returns -EINVAL on error or passes along
* the return value from _reset()/_enable().
* the return value from _reset().
*/
int omap_hwmod_reset(struct omap_hwmod *oh)
{
int r;

if (!oh || !(oh->_state & _HWMOD_STATE_ENABLED))
if (!oh)
return -EINVAL;

mutex_lock(&omap_hwmod_mutex);
r = _reset(oh);
if (!r)
r = _omap_hwmod_enable(oh);
mutex_unlock(&omap_hwmod_mutex);

return r;
Expand Down

0 comments on commit 10be097

Please sign in to comment.