[media] davinci: vpif: Add suspend/resume callbacks to vpif driver
authorManjunath Hadli <manjunath.hadli@ti.com>
Fri, 13 Apr 2012 07:51:13 +0000 (04:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Jul 2012 22:08:34 +0000 (19:08 -0300)
commit31415d0ef304f26edcba4d3ae106606b83f3c22e
treecc365024c357904712f9469f1c2566065e2077ed
parent3d5946dcfd4d221126f3f190c5ca4ea41c20f138
[media] davinci: vpif: Add suspend/resume callbacks to vpif driver

add clock enable and disable in probe and remove functions.
Probe will succeed only if the device clock is provided instead of
assuming that the clock is always enabled. VPIF clock has to be
dealt with during suspend and resume. Implement power management
callbacks to VPIF driver to disable/enable clock on suspend/resume
respectively.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/davinci/vpif.c