/* Enable hw supervised mode for all clockdomains if it's supported. Initiate sleep transition for other clockdomains, if they are not used  */
static int __init clkdms_setup(struct clockdomain *clkdm, void *unused)
/* Enable hw supervised mode for all clockdomains if it's supported. Initiate sleep transition for other clockdomains, if they are not used  */
static int __init clkdms_setup(struct clockdomain *clkdm, void *unused)
{
	if (clkdm->flags & CLKDM_CAN_ENABLE_AUTO)
		omap2_clkdm_allow_idle(clkdm);
	else if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP &&
		 atomic_read(&clkdm->usecount) == 0)
		omap2_clkdm_sleep(clkdm);
	return 0;
}