]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite787f1ea754c74f552c287f5dc4b6f54340b48b4
tree4e67bf85f8ed7561c6a35eb083ef7b47d8d695fe
parent3ddfb92b2670a85031c66c011a673958163ae9d7
[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