diff options
author | Jesper Nilsson <jesper@jni.nu> | 2008-06-29 23:38:42 +0200 |
---|---|---|
committer | Jesper Nilsson <jesper@jni.nu> | 2008-06-29 23:38:42 +0200 |
commit | 53e43d014cb7d5a3bd53dbdbf0e74977e7dda923 (patch) | |
tree | 53cb0c287e60fdf09339e985d6cedaa3e7cbcabe /arch | |
parent | Merge branch 'cris_debug_port_fix' into cris (diff) | |
parent | It looks at least odd to apply spin_unlock to a mutex. (diff) | |
download | linux-53e43d014cb7d5a3bd53dbdbf0e74977e7dda923.tar.xz linux-53e43d014cb7d5a3bd53dbdbf0e74977e7dda923.zip |
Merge branch 'pcf8563_mutex_spinlock' into cris
Diffstat (limited to 'arch')
-rw-r--r-- | arch/cris/arch-v10/drivers/pcf8563.c | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/pcf8563.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/cris/arch-v10/drivers/pcf8563.c b/arch/cris/arch-v10/drivers/pcf8563.c index 52103d16dc6c..8769dc914073 100644 --- a/arch/cris/arch-v10/drivers/pcf8563.c +++ b/arch/cris/arch-v10/drivers/pcf8563.c @@ -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; } diff --git a/arch/cris/arch-v32/drivers/pcf8563.c b/arch/cris/arch-v32/drivers/pcf8563.c index 53db3870ba04..f263ab571221 100644 --- a/arch/cris/arch-v32/drivers/pcf8563.c +++ b/arch/cris/arch-v32/drivers/pcf8563.c @@ -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; } |