CRIS: assignment/is equal confusion
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 8 Jun 2009 11:04:43 +0000 (13:04 +0200)
committerJesper Nilsson <jesper.nilsson@axis.com>
Mon, 8 Jun 2009 11:05:19 +0000 (13:05 +0200)
commitb0903ee8e4853eea35cb24cfb4dda1b60c7948dc
tree37c75f4c3f0fe13aa85b84f0ad8e587468e78a42
parentccc0d38ec13d4649d4168c1db590137df53ad783
CRIS: assignment/is equal confusion

Somehow, the assignments of rw->lock got written as comparisons.
The effect probably was that the read-write spinlocks never locked.
However, since the locks are only used in CONFIG_SMP and SMP CRIS is
experimental, it has never been identified as a problem.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/include/arch-v32/arch/spinlock.h