Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143581
b: refs/heads/master
c: 0c3ee07
h: refs/heads/master
i:
  143579: 9bdab7b
v: v3
  • Loading branch information
Ramax Lo authored and Ben Dooks committed Apr 17, 2009
1 parent 5174ca0 commit eff42a3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f8c8ac8109ecdd3583b0ac9fd3adf058678a802e
refs/heads/master: 0c3ee078251b85812e585b5cf5d1635afd73f4e2
17 changes: 17 additions & 0 deletions trunk/arch/arm/plat-s3c24xx/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,23 @@ EXPORT_SYMBOL_GPL(s3c_adc_register);
void s3c_adc_release(struct s3c_adc_client *client)
{
/* We should really check that nothing is in progress. */
if (adc_dev->cur == client)
adc_dev->cur = NULL;
if (adc_dev->ts_pend == client)
adc_dev->ts_pend = NULL;
else {
struct list_head *p, *n;
struct s3c_adc_client *tmp;

list_for_each_safe(p, n, &adc_pending) {
tmp = list_entry(p, struct s3c_adc_client, pend);
if (tmp == client)
list_del(&tmp->pend);
}
}

if (adc_dev->cur == NULL)
s3c_adc_try(adc_dev);
kfree(client);
}
EXPORT_SYMBOL_GPL(s3c_adc_release);
Expand Down

0 comments on commit eff42a3

Please sign in to comment.