Merge remote-tracking branch 'regulator/fix/dbx500' into regulator-linus

This commit is contained in:
Mark Brown 2013-05-30 11:58:37 +01:00
Родитель 435494acd6 3d75095a53
Коммит e4bf063cb8
1 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -24,18 +24,6 @@
static int power_state_active_cnt; /* will initialize to zero */
static DEFINE_SPINLOCK(power_state_active_lock);
int power_state_active_get(void)
{
unsigned long flags;
int cnt;
spin_lock_irqsave(&power_state_active_lock, flags);
cnt = power_state_active_cnt;
spin_unlock_irqrestore(&power_state_active_lock, flags);
return cnt;
}
void power_state_active_enable(void)
{
unsigned long flags;
@ -65,6 +53,18 @@ out:
#ifdef CONFIG_REGULATOR_DEBUG
static int power_state_active_get(void)
{
unsigned long flags;
int cnt;
spin_lock_irqsave(&power_state_active_lock, flags);
cnt = power_state_active_cnt;
spin_unlock_irqrestore(&power_state_active_lock, flags);
return cnt;
}
static struct ux500_regulator_debug {
struct dentry *dir;
struct dentry *status_file;