[media] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()
authorJan Kara <jack@suse.cz>
Mon, 13 Jul 2015 14:55:45 +0000 (11:55 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 16 Aug 2015 16:04:54 +0000 (13:04 -0300)
commit8a677b6eddfc3127ea36a710838ecd20502b1cb9
tree795463ccc0f541071ef0ddd720394e5e620247d3
parent8025e5ddf9c1cac0e632dad49a63abf7848b78cb
[media] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns()

Convert omap_vout_uservirt_to_phys() to use get_vaddr_pfns() instead of
hand made mapping of virtual address to physical address. Also the
function leaked page reference from get_user_pages() so fix that by
properly release the reference when omap_vout_buffer_release() is
called.

Signed-off-by: Jan Kara <jack@suse.cz>
[hans.verkuil@cisco.com: remove unused variable]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap/Kconfig
drivers/media/platform/omap/omap_vout.c