]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
media: Revert "media: em28xx: add missing em28xx_close_extension"
authorPavel Skripkin <paskripkin@gmail.com>
Thu, 20 Jan 2022 19:37:30 +0000 (20:37 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:58:34 +0000 (11:58 +0200)
BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit fde18c3bac3f964d8333ae53b304d8fee430502b ]

This reverts commit 2c98b8a3458df03abdc6945bbef67ef91d181938.

Reverted patch causes problems with Hauppauge WinTV dualHD as Maximilian
reported [1]. Since quick solution didn't come up let's just revert it
to make this device work with upstream kernels.

Link: https://lore.kernel.org/all/6a72a37b-e972-187d-0322-16336e12bdc5@elbmurf.de/
Reported-by: Maximilian Böhm <maximilian.boehm@elbmurf.de>
Tested-by: Maximilian Böhm <maximilian.boehm@elbmurf.de>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit deb1f04531982eecebbb96c11b70d94c39d622ae)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/media/usb/em28xx/em28xx-cards.c

index c415b1d195c49377b77e063a86c3dc3ac517c662..92d867fc519c4748978e166b05363c7b874d0e74 100644 (file)
@@ -4145,11 +4145,8 @@ static void em28xx_usb_disconnect(struct usb_interface *intf)
 
        em28xx_close_extension(dev);
 
-       if (dev->dev_next) {
-               em28xx_close_extension(dev->dev_next);
+       if (dev->dev_next)
                em28xx_release_resources(dev->dev_next);
-       }
-
        em28xx_release_resources(dev);
 
        if (dev->dev_next) {