/* Prevent the hardware module @oh from entering idle while the hardare module initiator @init_oh is active. Useful when a module will be accessed by a particular initiator (e.g., if a module will be accessed by the IVA, there should be a sleepdep between the IVA initiator and the module). Only applies to modules in smart-idle mode. Returns -EINVAL upon error or passes along pwrdm_add_sleepdep() value upon success.  */
static int _add_initiator_dep(struct omap_hwmod *oh, struct omap_hwmod *init_oh)
/* Prevent the hardware module @oh from entering idle while the hardare module initiator @init_oh is active. Useful when a module will be accessed by a particular initiator (e.g., if a module will be accessed by the IVA, there should be a sleepdep between the IVA initiator and the module). Only applies to modules in smart-idle mode. Returns -EINVAL upon error or passes along pwrdm_add_sleepdep() value upon success.  */
static int _add_initiator_dep(struct omap_hwmod *oh, struct omap_hwmod *init_oh)
{
	if (!oh->_clk)
		return -EINVAL;
	return pwrdm_add_sleepdep(oh->_clk->clkdm->pwrdm.ptr,
				  init_oh->_clk->clkdm->pwrdm.ptr);
}