It looks at least odd to apply spin_unlock to a mutex.
[firefly-linux-kernel-4.4.55.git] / arch / cris / arch-v10 / drivers / pcf8563.c
index 52103d16dc6c0e2b185a8700f8d4263a7683d122..8769dc914073804ce0c75240e0aa6b60fc7c602a 100644 (file)
@@ -233,7 +233,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;
                }