Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/sameo/mfd-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6:
  mfd: fix pcap adc locking
  mfd: sm501, fix lock imbalance
  • Loading branch information
Linus Torvalds committed Jul 4, 2009
2 parents 14c1b7c + 1c90ea2 commit dd0888c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion drivers/mfd/ezx-pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ static irqreturn_t pcap_adc_irq(int irq, void *_pcap)
mutex_lock(&pcap->adc_mutex);
req = pcap->adc_queue[pcap->adc_head];

if (WARN(!req, KERN_WARNING "adc irq without pending request\n"))
if (WARN(!req, KERN_WARNING "adc irq without pending request\n")) {
mutex_unlock(&pcap->adc_mutex);
return IRQ_HANDLED;
}

/* read requested channels results */
ezx_pcap_read(pcap, PCAP_REG_ADC, &tmp);
Expand Down
3 changes: 2 additions & 1 deletion drivers/mfd/sm501.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to)
break;

default:
return -1;
gate = -1;
goto already;
}

writel(mode, sm->regs + SM501_POWER_MODE_CONTROL);
Expand Down

0 comments on commit dd0888c

Please sign in to comment.