[media] em28xx: always call em28xx_release_resources() in the usb disconnect handler
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 12 Jan 2014 16:24:24 +0000 (13:24 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 14 Jan 2014 16:32:04 +0000 (14:32 -0200)
commit5a620c7c1cd74064e75a525738e9410b8851fa96
tree4e67bf85f8ed7561c6a35eb083ef7b47d8d695fe
parentf188da4395b85698d1a55e9fb278ea7e629fbe96
[media] em28xx: always call em28xx_release_resources() in the usb disconnect handler

When the usb device is disconnected, the resources are no longer available,
so there is no reason to keep them registered.

This will also fix the various sysfs group removal warnings which we can see
since kernel 3.13.

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