[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>
This commit is contained in:
Mauro Carvalho Chehab 2014-01-12 22:44:23 -03:00
parent aa929ad783
commit 6582af4c01
1 changed files with 1 additions and 6 deletions

View File

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