|
@@ -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;
|
|
|
|