[media] smiapp: Clean up media entity after unregistering subdev
authorSakari Ailus <sakari.ailus@iki.fi>
Tue, 11 Jun 2013 09:50:48 +0000 (06:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jun 2013 11:59:18 +0000 (08:59 -0300)
commit2a3e7256851b642f35c3bb550be77b815486b469
tree9ee6536e3bc8e1d84cd6c5baf31c9ca63e7a6850
parent7bb151b23b40c32c85f5116827a87fc23f0be4c4
[media] smiapp: Clean up media entity after unregistering subdev

media_entity_cleanup() frees the links array which will be accessed by
media_entity_remove_links() called by v4l2_device_unregister_subdev().

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/smiapp/smiapp-core.c