CRIS: locking: fix the return value of arch_read_trylock()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 17 Oct 2012 14:54:27 +0000 (16:54 +0200)
committerJesper Nilsson <jesper@jni.nu>
Thu, 20 Dec 2012 11:51:19 +0000 (12:51 +0100)
commit00addd1a2de8d83dc3a5d6bb926911268ec716c9
tree9a3cd51906455f0dc446c1690ca66a8e6e9c0cc4
parente61ac0b05c53f5b56f3ea623c215437c09d8265b
CRIS: locking: fix the return value of arch_read_trylock()

arch_write_trylock() should return 'ret' instead of always
return 1.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/include/arch-v32/arch/spinlock.h