@@ -651,9 +651,8 @@ int omap_device_require_no_mstandby(struct platform_device *pdev)
return -EINVAL;
}
- oh = *od->hwmods;
for (i = 0; i < od->hwmods_cnt; i++)
- ret = omap_hwmod_set_master_standbymode(oh, true);
+ ret = omap_hwmod_set_master_standbymode(od->hwmods[i], true);
return ret;
}
@@ -684,9 +683,8 @@ int omap_device_release_no_mstandby(struct platform_device *pdev)
return -EINVAL;
}
- oh = *od->hwmods;
for (i = 0; i < od->hwmods_cnt; i++)
- ret = omap_hwmod_set_master_standbymode(oh, false);
+ ret = omap_hwmod_set_master_standbymode(od->hwmods[i], false);
return ret;
}