]> git.baikalelectronics.ru Git - kernel.git/commit
drm: msm: fix building without CONFIG_COMMON_CLK
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Oct 2021 14:42:56 +0000 (16:42 +0200)
committerRob Clark <robdclark@chromium.org>
Fri, 26 Nov 2021 16:58:57 +0000 (08:58 -0800)
commitd8dcf355da0937dcfbe6a375773acb64f76cd1d7
tree34d3a04a99d1c7d09ae5b198c774834cd3a136fe
parenta8e7866f7ae7863755f5d6b8e8cad5fe3599b14c
drm: msm: fix building without CONFIG_COMMON_CLK

When CONFIG_COMMON_CLOCK is disabled, the 8996 specific
phy code is left out, which results in a link failure:

ld: drivers/gpu/drm/msm/hdmi/hdmi_phy.o:(.rodata+0x3f0): undefined reference to `msm_hdmi_phy_8996_cfg'

This was only exposed after it became possible to build
test the driver without the clock interfaces.

Make COMMON_CLK a hard dependency for compile testing,
and simplify it a little based on that.

Fixes: 1a14b488de92 ("drm/msm: allow compile_test on !ARM")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20211013144308.2248978-1-arnd@kernel.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/Kconfig
drivers/gpu/drm/msm/Makefile