OSDN Git Service

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)
commitb3ed524f84f573ece1aa2f26e9db3c34a593e0d1
treeef6784df5d8f7f7af0d3f8c666571a51cabb5741
parent116e5947d7bf49cf5a29e1eb30deec12ed8b53f8
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