Arjan van de Ven 68c16b4117 serial: replace open coded mutex with a real mutex in mrst_max3110.c
The mrst_max3110.c driver uses an open coded, non atomic variable
to create exclusion between two of its worker threads. More than that,
while the main thread does a proper set-work-clear sequence,
the other thread only does a test, with the result that no actual
exclusion is happening.

this patch replaces this open coded variable with a proper mutex

in addition, the 'lock' spinlock is removed from the per adapter structure,
the lock was only ever initialized but never used

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-10 13:47:39 -07:00
..
2009-09-19 13:13:19 -07:00
2009-09-19 13:13:28 -07:00
2009-09-19 13:13:28 -07:00
2009-09-19 13:13:28 -07:00
2010-04-21 14:56:00 +10:00
2010-06-04 13:37:16 -07:00
2010-06-04 13:37:16 -07:00
2009-09-19 13:13:28 -07:00
2010-02-27 18:31:02 +01:00
2009-09-19 13:13:28 -07:00
2010-05-22 17:06:34 +09:00