media: Revert "media: em28xx: add missing em28xx_close_extension"

[ 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/[email protected]/ [1]

Reported-by: Maximilian Böhm <[email protected]>
Tested-by: Maximilian Böhm <[email protected]>
Signed-off-by: Pavel Skripkin <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
Pavel Skripkin 2022-01-20 20:37:30 +01:00 • committed by Greg Kroah-Hartman
commit 236311be09

View file

@ -4035,11 +4035,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) {