[media] vivid: use v4l2_device.release to clean up the driver
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 13 Mar 2015 10:41:05 +0000 (07:41 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 00:08:04 +0000 (21:08 -0300)
commit87c674e24362cf0f8d5b70d2e20f6160045fd753
treefea4f19a0abf5efa6f52f43a77e4783854d58f56
parentf46d740fb0258982f00ffdbddc6486e674edafb5
[media] vivid: use v4l2_device.release to clean up the driver

Use the release callback of the v4l2_device to clean up the memory.
This prevents vivid from breaking if someone tries to unbind the
driver.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-core.c