staging: unisys: visorinput: no need to track open count
authorTim Sell <Timothy.Sell@unisys.com>
Wed, 14 Oct 2015 13:45:10 +0000 (09:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:59:36 +0000 (22:59 -0700)
commit7eb1f7a09bcc1c5f10241d85bee65e786558f171
tree406ac4e382f77f651c8951b406b06cf13aa82863
parent1b756c43ce3b1696282670bd1de41d36e5205781
staging: unisys: visorinput: no need to track open count

evdev_open_device() and evdev_close_device() (in evdev.c) already track
the open count under lock, and will only call visorinput_open() on the
first open and visorinput_close() on the last close.  So this patch
removes the unnessary logic from visorinput, and the now-unused counter
from the struct.

Signed-off-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorinput/visorinput.c