[media] em28xx: refactor the code in em28xx_usb_disconnect()
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Thu, 27 Dec 2012 22:02:44 +0000 (19:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Jan 2013 03:10:13 +0000 (01:10 -0200)
commit05fe2175cf87da8a5475aed422bd636475ab0412
tree05e45951c6771bf6ebd614ec92bda62d3c5dc11e
parent2665c2995d6a6026cfc9ec118908dfccb74fb5e0
[media] em28xx: refactor the code in em28xx_usb_disconnect()

The main purpose of this patch is to move the call of em28xx_release_resources()
after the call of em28xx_close_extension().
This is necessary, because some resources might be needed/used by the extensions
fini() functions when they get closed.
Also mark the device as disconnected earlier in this function and unify the
em28xx_uninit_usb_xfer() calls for analog and digital mode.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c