/* Set up internal state. If a pointer to an array of clockdomains was supplied, loop through the list of clockdomains, register all that are available on the current platform. Similarly, if a pointer to an array of clockdomain-powerdomain autodependencies was provided, register those. No return value.  */
void clkdm_init(struct clockdomain **clkdms, struct clkdm_pwrdm_autodep *init_autodeps)
/* Set up internal state. If a pointer to an array of clockdomains was supplied, loop through the list of clockdomains, register all that are available on the current platform. Similarly, if a pointer to an array of clockdomain-powerdomain autodependencies was provided, register those. No return value.  */
void clkdm_init(struct clockdomain **clkdms, struct clkdm_pwrdm_autodep *init_autodeps)
{
	struct clockdomain **c = NULL;
	struct clkdm_pwrdm_autodep *autodep = NULL;
	if (clkdms)
		for (c = clkdms; *c; c++)
			clkdm_register(*c);
	autodeps = init_autodeps;
	if (autodeps)
		for (autodep = autodeps; autodep->pwrdm.ptr; autodep++)
			_autodep_lookup(autodep);
}