/* Return the number of controllable memory banks in powerdomain pwrdm, starting with 1. Returns -EINVAL if the powerdomain pointer is null.  */
int pwrdm_get_mem_bank_count(struct powerdomain *pwrdm)
/* Return the number of controllable memory banks in powerdomain pwrdm, starting with 1. Returns -EINVAL if the powerdomain pointer is null.  */
int pwrdm_get_mem_bank_count(struct powerdomain *pwrdm)
{
	if (!pwrdm)
		return -EINVAL;
	return pwrdm->banks;
}