diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2014-01-12 13:24:24 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-14 14:32:04 -0200 |
commit | 5a620c7c1cd74064e75a525738e9410b8851fa96 (patch) | |
tree | 4e67bf85f8ed7561c6a35eb083ef7b47d8d695fe /drivers/media/usb/em28xx/em28xx-video.c | |
parent | f188da4395b85698d1a55e9fb278ea7e629fbe96 (diff) | |
download | blackbird-op-linux-5a620c7c1cd74064e75a525738e9410b8851fa96.tar.gz blackbird-op-linux-5a620c7c1cd74064e75a525738e9410b8851fa96.zip |
[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>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-video.c')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-video.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index d8ca37abc917..cda0dc3555d2 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c @@ -1959,7 +1959,6 @@ static int em28xx_v4l2_close(struct file *filp) free the remaining resources */ if (dev->disconnected) { - em28xx_release_resources(dev); kfree(dev->alt_max_pkt_size_isoc); goto exit; } |