upstream: [media] em28xx: Fix usb diconnect logic
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 13 Jan 2014 01:44:23 +0000 (22:44 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:31 +0000 (11:54 +0900)
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 414bb0d..a1964eb 100644 (file)
@@ -3205,12 +3205,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);