[media] lirc_zilog: Convert the instance open count to an atomic_t
authorAndy Walls <awalls@md.metrocast.net>
Thu, 27 Jan 2011 01:04:24 +0000 (22:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 22:23:52 +0000 (19:23 -0300)
commita30648550f2f758c9c00c493c8919f89f65438c4
tree59815fdbb41ed4299f6da97f8a545661d683ad8e
parent5c07134fff9e6b1f9a3c75e62bbb827d1faa72eb
[media] lirc_zilog: Convert the instance open count to an atomic_t

The open count is simply used for deciding if the Rx polling thread
needs to poll the IR chip for userspace.  Simplify the manipulation
of the open count by using an atomic_t and not requiring a lock
The polling thread errantly didn't try to take the lock anyway.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/lirc_zilog.c