Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311942
b: refs/heads/master
c: 8265981
h: refs/heads/master
v: v3
  • Loading branch information
Todd Poynor authored and Kukjin Kim committed Jul 13, 2012
1 parent 52fe41e commit d909a28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdd3cc26ba651e33780ade33f1410320cf2d0cf4
refs/heads/master: 8265981bb439f3ecc5356fb877a6c2a6636ac88a
8 changes: 5 additions & 3 deletions trunk/arch/arm/plat-samsung/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,13 @@ int s3c_adc_start(struct s3c_adc_client *client,
return -EINVAL;
}

if (client->is_ts && adc->ts_pend)
return -EAGAIN;

spin_lock_irqsave(&adc->lock, flags);

if (client->is_ts && adc->ts_pend) {
spin_unlock_irqrestore(&adc->lock, flags);
return -EAGAIN;
}

client->channel = channel;
client->nr_samples = nr_samples;

Expand Down

0 comments on commit d909a28

Please sign in to comment.