[media] media: davinci: vpif: add check for NULL handler
authorLad, Prabhakar <prabhakar.lad@ti.com>
Thu, 27 Sep 2012 05:33:12 +0000 (02:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 00:56:22 +0000 (21:56 -0300)
commitf4ad8d74e1ab54861bf084052a032c708dd0e227
tree248f2b82c0c28bf053cb6a06780ba9ae83acb50c
parent99b32b24889a4671244f4ef99fed779e017ce8be
[media] media: davinci: vpif: add check for NULL handler

for da850/omap-l138, there is no need to setup_input_channel_mode()
and set_clock(), to avoid adding dummy code in board file just returning
zero add a check in the driver itself to call the handler only if its
not NULL.

Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpif_capture.c
drivers/media/platform/davinci/vpif_display.c