staging: panel: Fix single-open policy race condition
authorMariusz Gorski <marius.gorski@gmail.com>
Tue, 4 Nov 2014 21:47:19 +0000 (22:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Nov 2014 22:58:07 +0000 (14:58 -0800)
commitf4757af8516d95aaf9c6a1238887c34914e54622
tree6cf53a8bc7b6d7b5c30ffa4512952407a7a1d7fe
parent54fbb2da8d4cef4f57d0cf70b84471dd61a7af5f
staging: panel: Fix single-open policy race condition

Fix the implementation of a single-open policy for both
devices (lcd and keypad) by using atomic_t instead of plain ints.

Signed-off-by: Mariusz Gorski <marius.gorski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/panel/panel.c