Skip to content

Commit

Permalink
Merge remote-tracking branch 'regulator/fix/dbx500' into regulator-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed May 30, 2013
2 parents 435494a + 3d75095 commit e4bf063
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions drivers/regulator/dbx500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -65,6 +53,18 @@ int power_state_active_disable(void)

#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;
Expand Down

0 comments on commit e4bf063

Please sign in to comment.