media: rc: ensure close() is called on rc_unregister_device
authorSean Young <sean@mess.org>
Sun, 4 Nov 2018 10:12:09 +0000 (05:12 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 22 Nov 2018 18:33:24 +0000 (13:33 -0500)
commit8e782fcf78275f505194e767c515202d4fd274bc
tree61e03f7ed3d1b206976bc43cc9c8b30def235935
parent2396e2821b0f42ab5048d015298d4858a0eefa32
media: rc: ensure close() is called on rc_unregister_device

If userspace has an open file descriptor on the rc input device or lirc
device when rc_unregister_device() is called, then the rc close() is
never called.

This ensures that the receiver is turned off on the nuvoton-cir driver
during shutdown.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/rc-main.c