]> Pileus Git - ~andy/linux/commitdiff
[media] em28xx: Fix usb diconnect logic
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 13 Jan 2014 01:44:23 +0000 (22:44 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 14 Jan 2014 16:38:53 +0000 (14:38 -0200)
Now that everything is extension, the usb disconnect logic should
be the same.

While here, fix the device name.

Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-cards.c

index 3b332d527ccb8f8ec9a5257adec278ed265b84c9..e08d65b2e352f3c8ca6df84f63b3f3328087b554 100644 (file)
@@ -3379,12 +3379,7 @@ static void em28xx_usb_disconnect(struct usb_interface *interface)
 
        dev->disconnected = 1;
 
-       if (dev->is_audio_only) {
-               em28xx_close_extension(dev);
-               return;
-       }
-
-       em28xx_info("disconnecting %s\n", dev->vdev->name);
+       em28xx_info("Disconnecting %s\n", dev->name);
 
        flush_request_modules(dev);