[media] V4L: soc_camera_platform: add helper functions to manage device instances
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 23 Mar 2011 07:14:43 +0000 (04:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 10:26:14 +0000 (07:26 -0300)
commitec0c8d555a93aa7e2c5c4f11f12686e5b2245696
treecc0d129c4efd8adaac5c29fb93c156e1dd697e90
parente0df5417acf65cff05343b1fb83fb40344e155ea
[media] V4L: soc_camera_platform: add helper functions to manage device instances

Add helper inline functions to correctly manage dynamic allocation and
freeing of platform devices. This avoids the ugly code to nullify
device objects.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/soc_camera_platform.h