rk29: adc: fix error: incompatible type for argument 1 of spin_lock
author黄涛 <huangtao@rock-chips.com>
Thu, 28 Jul 2011 07:20:41 +0000 (15:20 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 28 Jul 2011 07:53:24 +0000 (15:53 +0800)
drivers/adc/core.c

index 0756c7ea4f80eb76070076104dc395d146e24854..eb7ddef884ac22a589b618594e449d2d344d98bf 100755 (executable)
@@ -203,7 +203,7 @@ void adc_core_irq_handle(struct adc_host *adc)
 {
        struct adc_request *req;
        int head, res;
-       spin_lock(adc->lock);
+       spin_lock(&adc->lock);
        head = adc->queue_head;
 
        req = adc->queue[head];