diff options
Diffstat (limited to 'arch/arm/mach-omap2/powerdomain.c')
| -rw-r--r-- | arch/arm/mach-omap2/powerdomain.c | 16 | 
1 files changed, 12 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c index 96114901b93..eefe179045e 100644 --- a/arch/arm/mach-omap2/powerdomain.c +++ b/arch/arm/mach-omap2/powerdomain.c @@ -981,15 +981,23 @@ int pwrdm_state_switch(struct powerdomain *pwrdm)  	return ret;  } -int pwrdm_pre_transition(void) +int pwrdm_pre_transition(struct powerdomain *pwrdm)  { -	pwrdm_for_each(_pwrdm_pre_transition_cb, NULL); +	if (pwrdm) +		_pwrdm_pre_transition_cb(pwrdm, NULL); +	else +		pwrdm_for_each(_pwrdm_pre_transition_cb, NULL); +  	return 0;  } -int pwrdm_post_transition(void) +int pwrdm_post_transition(struct powerdomain *pwrdm)  { -	pwrdm_for_each(_pwrdm_post_transition_cb, NULL); +	if (pwrdm) +		_pwrdm_post_transition_cb(pwrdm, NULL); +	else +		pwrdm_for_each(_pwrdm_post_transition_cb, NULL); +  	return 0;  }  |