[media] V4L: omap1-camera: fix Oops with NULL platform data
commit2b3d0457b8b2562bb25e3244ea591f0f6373701b
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 22 Aug 2011 15:57:45 +0000 (22 12:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:28:22 +0000 (3 18:28 -0200)
treef459bdcaefc295148c8a47782344aa2966e04abc
parent6ac939c06f34eaba2bc4b3be1d7f6bf26f629a23
[media] V4L: omap1-camera: fix Oops with NULL platform data

Consistently check for platform data != NULL before dereferencing.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap1_camera.c