summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2015-05-20 01:03:12 +0300
committerSasha Levin <sasha.levin@oracle.com>2015-10-07 17:16:04 +0300
commita2e1f66ec92a8bbf680229d2806bf55c17b33bf7 (patch)
tree2afa1fdc73b59a9a80d028223aff674a902c3b4a /drivers/media
parent946f8cba3e55fb62ab463b9ab381399857b61c36 (diff)
downloadlinux-a2e1f66ec92a8bbf680229d2806bf55c17b33bf7.tar.xz
[media] rc-core: fix remove uevent generation
[ Upstream commit a66b0c41ad277ae62a3ae6ac430a71882f899557 ] 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. Cc: stable@kernel.org Signed-off-by: David Härdeman <david@hardeman.nu> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/rc/rc-main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index fc369b033484..b4ceda856939 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -1191,9 +1191,6 @@ static int rc_dev_uevent(struct device *device, struct kobj_uevent_env *env)
{
struct rc_dev *dev = to_rc_dev(device);
- if (!dev || !dev->input_dev)
- return -ENODEV;
-
if (dev->rc_map.name)
ADD_HOTPLUG_VAR("NAME=%s", dev->rc_map.name);
if (dev->driver_name)