upstream: [media] media: davinci: vpif_capture: improve vpif_buffer_prepare() callback
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Fri, 16 May 2014 13:33:37 +0000 (10:33 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:27:09 +0000 (14:27 +0900)
commit452fbff7d6cc220f6ef54443b6e4224bf7a8b174
tree656dafb4f0558c4cbb62371990593d65a00ab9c4
parent78d4ebe022815184017f353d3dbdb75670b86465
upstream: [media] media: davinci: vpif_capture: improve vpif_buffer_prepare() callback

this patch improve vpif_buffer_prepare() callback, as buf_prepare()
callback is never called with invalid state and check for
vb2_plane_vaddr(vb, 0) is dropped as payload check should
be done unconditionally.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/davinci/vpif_capture.c