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)
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>

No differences found