rc-core: fix remove uevent generation
authorDavid Härdeman <david@hardeman.nu>
Tue, 19 May 2015 22:03:12 +0000 (19:03 -0300)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:10:05 +0000 (13:10 +0000)
commit92b7d3bc60211e127483b125b4abcd47af8e0a73
treed4eb9a89ad04beff58a7b73a2dbf705d68d56a7a
parent52521709655e28f803879e5f9ebc0bf5ff43b85a
rc-core: fix remove uevent generation

commit a66b0c41ad277ae62a3ae6ac430a71882f899557 upstream.

The input_dev is already gone when the rc device is being unregistered
so checking for its presence only means that no remove uevent will be
generated.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/rc/rc-main.c