]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: allow compile_test on !ARM
authorChristian König <christian.koenig@amd.com>
Thu, 23 Sep 2021 12:47:57 +0000 (14:47 +0200)
committerChristian König <christian.koenig@amd.com>
Tue, 28 Sep 2021 06:42:00 +0000 (08:42 +0200)
commit1a14b488de920b6ba3fcec9b5beb438ab116b806
treeef6784df5d8f7f7af0d3f8c666571a51cabb5741
parentc627532359f4aba2007fcefe490b742180018ed4
drm/msm: allow compile_test on !ARM

MSM is one of the few drivers which won't even compile
test on !ARM platforms.

Looking into this a bit more it turned out that there is
actually not that much missing to at least let the driver
compile on x86 as well.

So this patch replaces the use of phys_to_page() with the
open coded version and provides a dummy for of_drm_find_bridge().

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210924071759.22659-2-christian.koenig@amd.com
drivers/gpu/drm/msm/Kconfig
drivers/gpu/drm/msm/msm_gem.c
include/drm/drm_bridge.h