Skip to content

Commit

Permalink
[media] em28xx: Fix usb diconnect logic
Browse files Browse the repository at this point in the history
Now that everything is extension, the usb disconnect logic should
be the same.

While here, fix the device name.

Reviewed-by: Frank Schäfer <[email protected]>
Tested-by: Antti Palosaari <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Jan 14, 2014
1 parent aa929ad commit 6582af4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/media/usb/em28xx/em28xx-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6582af4

Please sign in to comment.