diff options
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/adc.c | 19 | ||||
-rw-r--r-- | arch/arm/plat-s3c24xx/gpiolib.c | 2 |
2 files changed, 19 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c24xx/adc.c b/arch/arm/plat-s3c24xx/adc.c index 9a5c767e0a42..91adfa71c172 100644 --- a/arch/arm/plat-s3c24xx/adc.c +++ b/arch/arm/plat-s3c24xx/adc.c | |||
@@ -100,7 +100,7 @@ static void s3c_adc_dbgshow(struct adc_device *adc) | |||
100 | readl(adc->regs + S3C2410_ADCDLY)); | 100 | readl(adc->regs + S3C2410_ADCDLY)); |
101 | } | 101 | } |
102 | 102 | ||
103 | void s3c_adc_try(struct adc_device *adc) | 103 | static void s3c_adc_try(struct adc_device *adc) |
104 | { | 104 | { |
105 | struct s3c_adc_client *next = adc->ts_pend; | 105 | struct s3c_adc_client *next = adc->ts_pend; |
106 | 106 | ||
@@ -190,6 +190,23 @@ EXPORT_SYMBOL_GPL(s3c_adc_register); | |||
190 | void s3c_adc_release(struct s3c_adc_client *client) | 190 | void s3c_adc_release(struct s3c_adc_client *client) |
191 | { | 191 | { |
192 | /* We should really check that nothing is in progress. */ | 192 | /* We should really check that nothing is in progress. */ |
193 | if (adc_dev->cur == client) | ||
194 | adc_dev->cur = NULL; | ||
195 | if (adc_dev->ts_pend == client) | ||
196 | adc_dev->ts_pend = NULL; | ||
197 | else { | ||
198 | struct list_head *p, *n; | ||
199 | struct s3c_adc_client *tmp; | ||
200 | |||
201 | list_for_each_safe(p, n, &adc_pending) { | ||
202 | tmp = list_entry(p, struct s3c_adc_client, pend); | ||
203 | if (tmp == client) | ||
204 | list_del(&tmp->pend); | ||
205 | } | ||
206 | } | ||
207 | |||
208 | if (adc_dev->cur == NULL) | ||
209 | s3c_adc_try(adc_dev); | ||
193 | kfree(client); | 210 | kfree(client); |
194 | } | 211 | } |
195 | EXPORT_SYMBOL_GPL(s3c_adc_release); | 212 | EXPORT_SYMBOL_GPL(s3c_adc_release); |
diff --git a/arch/arm/plat-s3c24xx/gpiolib.c b/arch/arm/plat-s3c24xx/gpiolib.c index 94a341aaa4e4..5c0491bf738b 100644 --- a/arch/arm/plat-s3c24xx/gpiolib.c +++ b/arch/arm/plat-s3c24xx/gpiolib.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <linux/gpio.h> | 20 | #include <linux/gpio.h> |
21 | 21 | ||
22 | #include <plat/gpio-core.h> | 22 | #include <mach/gpio-core.h> |
23 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
24 | #include <asm/irq.h> | 24 | #include <asm/irq.h> |
25 | 25 | ||