Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
[pandora-kernel.git] / arch / cris / arch-v32 / drivers / pcf8563.c
index 53db387..f263ab5 100644 (file)
@@ -229,7 +229,7 @@ int pcf8563_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
 
                if (copy_to_user((struct rtc_time *) arg, &tm,
                                 sizeof tm)) {
-                       spin_unlock(&rtc_lock);
+                       mutex_unlock(&rtc_lock);
                        return -EFAULT;
                }