[media] s5c73m3: Fix remove() callback to free requested resources
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 17 Apr 2013 18:03:34 +0000 (15:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 12:33:42 +0000 (09:33 -0300)
commit0c2224ee0e480001eab6fd31e7d12b6d80745926
tree9472818f6e3c08a0aa4f1f5d26a4130728aa347f
parent068b16b638070611272cf60da821cd70b2a267b3
[media] s5c73m3: Fix remove() callback to free requested resources

Make sure v4l2_device_unregister_subdev() is called for both:
oif and sensor subdev and both media entities are freed on
driver removal.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/s5c73m3/s5c73m3-core.c