[media] go7007: fix unregister/disconnect handling
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 11 Mar 2013 07:48:30 +0000 (04:48 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Mar 2013 15:42:58 +0000 (12:42 -0300)
- use the v4l2_device's release() callback
- remove the unnecessary ref_count
- don't free usb data structures on disconnect, only do that in the final
  release callback.
This is the correct way in order to safely handle disconnect and removal
of modules.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

No differences found