/* Called from _init_clocks(). Populates the @oh OCP slave interface clock pointers. Returns 0 on success or -EINVAL on error.  */
static int _init_interface_clks(struct omap_hwmod *oh)
/* Called from _init_clocks(). Populates the @oh OCP slave interface clock pointers. Returns 0 on success or -EINVAL on error.  */
static int _init_interface_clks(struct omap_hwmod *oh)
{
	struct omap_hwmod_ocp_if *os;
	struct clk *c;
	int i;
	int ret = 0;
	if (oh->slaves_cnt == 0)
		return 0;
	for (i = 0, os = *oh->slaves; i < oh->slaves_cnt; i++, os++) {
		if (!os->clkdev_con_id)
			continue;
		c = clk_get_sys(os->clkdev_dev_id, os->clkdev_con_id);
		WARN(IS_ERR(c), "omap_hwmod: %s: cannot clk_get "
		     "interface_clk %s.%s\n", oh->name,
		     os->clkdev_dev_id, os->clkdev_con_id);
		if (IS_ERR(c))
			ret = -EINVAL;
		os->_clk = c;
	}
	return ret;
}