upstream: [media] em28xx: always call em28xx_release_resources() in the usb disconnec...
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 12 Jan 2014 16:24:24 +0000 (13:24 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:43 +0000 (14:26 +0900)
commit8d54a245c931b94ea5fa2a51069b89f3c20e5004
tree4316465c3864bc5c10c1680414c954e2b51ee7c7
parent0c9378c38bafe6515c86f8650e790e80c6a65470
upstream: [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