rc-core: fix remove uevent generation
authorDavid Härdeman <david@hardeman.nu>
Tue, 19 May 2015 22:03:12 +0000 (19:03 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2015 10:07:31 +0000 (12:07 +0200)
commit92a6eef0fb73b10dcc9fa3061d3ec2cf604d6d0a
tree5d01da5c1b7b3be32635acbd0bd7dcdcd3572c3e
parent55b9029eab6e1cf44afa35b9823308246a0605d9
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