arm64: imx8dv: Fix drm_addmap_core fail for aarch64
authorYong Gan <yong.gan@nxp.com>
Fri, 2 Jun 2017 01:20:55 +0000 (09:20 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:27 +0000 (15:22 -0500)
Fix error on mapping fb in exa driver starting.

Signed-off-by: Yong Gan <yong.gan@nxp.com>
drivers/gpu/drm/drm_bufs.c

index adb1dd7..3ff9495 100644 (file)
@@ -177,7 +177,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
        switch (map->type) {
        case _DRM_REGISTERS:
        case _DRM_FRAME_BUFFER:
-#if !defined(__sparc__) && !defined(__alpha__) && !defined(__ia64__) && !defined(__powerpc64__) && !defined(__x86_64__) && !defined(__arm__)
+#if !defined(__sparc__) && !defined(__alpha__) && !defined(__ia64__) && !defined(__powerpc64__) && !defined(__x86_64__) && !defined(__arm__) && !defined(__aarch64__)
                if (map->offset + (map->size-1) < map->offset ||
                    map->offset < virt_to_phys(high_memory)) {
                        kfree(map);