CRISv10: Fix return before mutex_unlock in pcf8563
Jesper Nilsson [Mon, 21 Mar 2011 10:52:41 +0000 (11:52 +0100)]
Signed-off-by: Simone Contini <s.contini@oltrelinux.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>

arch/cris/arch-v10/drivers/pcf8563.c

index ea69fab..1391b73 100644 (file)
@@ -345,7 +345,7 @@ static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned
        int ret;
 
        mutex_lock(&pcf8563_mutex);
-       return pcf8563_ioctl(filp, cmd, arg);
+       ret = pcf8563_ioctl(filp, cmd, arg);
        mutex_unlock(&pcf8563_mutex);
 
        return ret;