fbdev: make get_fb_unmapped_area depends of !MMU
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 12 Jul 2017 16:28:11 +0000 (18:28 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 12 Jul 2017 16:28:11 +0000 (18:28 +0200)
commit4c99ceda0d067c06f228a27b6870f548d3218cc6
tree1227a534053aca270657f17e660a28c16b026b48
parentfa43bc2a5a041c8935c1f6f5f8ab2d57efdd9644
fbdev: make get_fb_unmapped_area depends of !MMU

Even if CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA flag is selected
do not compile and use get_fb_unmapped_area() if CONFIG_MMU is
also set. This will avoid mmap errors when compiling multi
architectures at same time.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Yannick Fertre <yannick.fertre@st.com>
Cc: Eric Engestrom <eric.engestrom@imgtec.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/core/fbmem.c