Revert "HACK: media: videobuf2: allow cache hints on all memory types"

This reverts commit a7b55392ab.

Signed-off-by: Cai YiWei <cyw@rock-chips.com>
Change-Id: I6eacd69327e0b64d36c8d7c69dd1f0a51ce3480a
This commit is contained in:
Cai YiWei
2020-12-17 10:36:00 +08:00
committed by Tao Huang
parent 1b592d162b
commit 77d310cf85

View File

@@ -591,9 +591,6 @@ struct vb2_queue {
*/
static inline bool vb2_queue_allows_cache_hints(struct vb2_queue *q)
{
#ifdef CONFIG_ARCH_ROCKCHIP
return q->allow_cache_hints;
#endif
return q->allow_cache_hints && q->memory == VB2_MEMORY_MMAP;
}