aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-12 20:44:23 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-14 11:38:53 -0500
commit6582af4c018afd222596d6244b6d685182035c75 (patch)
tree9b0bd0a3e9047431a86d0a34080e201c9951f22d /drivers/media
parentaa929ad783c0762f276c8c810f1c7f00b12dca4a (diff)
[media] em28xx: Fix usb diconnect logic
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/usb/em28xx/em28xx-cards.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c
index 3b332d527ccb..e08d65b2e352 100644
--- a/drivers/media/usb/em28xx/em28xx-cards.c
+++ b/drivers/media/usb/em28xx/em28xx-cards.c
@@ -3379,12 +3379,7 @@ static void em28xx_usb_disconnect(struct usb_interface *interface)
3379 3379
3380 dev->disconnected = 1; 3380 dev->disconnected = 1;
3381 3381
3382 if (dev->is_audio_only) { 3382 em28xx_info("Disconnecting %s\n", dev->name);
3383 em28xx_close_extension(dev);
3384 return;
3385 }
3386
3387 em28xx_info("disconnecting %s\n", dev->vdev->name);
3388 3383
3389 flush_request_modules(dev); 3384 flush_request_modules(dev);
3390 3385