diff options
author | Maxime Ripard <maxime@cerno.tech> | 2019-11-12 23:45:51 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2019-11-13 11:52:44 +0300 |
commit | c8401e0cc1e3c4aa061b26c613c19b6744b10244 (patch) | |
tree | 61228d97e69bd59df1ee2682b4963ae44f41a71a /drivers/gpu/drm/bridge | |
parent | 6958aa9092fd97719ad00b609ddd8b0333d2b82a (diff) | |
download | linux-c8401e0cc1e3c4aa061b26c613c19b6744b10244.tar.xz |
drm/bridge: anx6345: Fix compilation breakage on systems without CONFIG_OF
The driver assumes that the platform uses the device tree, and thus relies
on some fields (of_node) being declared in some structures (drm_bridge).
This isn't true for all platforms, so make sure we can only compile the
ANX6345 on platforms where DT support is selected.
Cc: Torsten Duwe <duwe@lst.de>
Fixes: 6aa192698089 ("drm/bridge: Add Analogix anx6345 support")
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20191112204551.541449-1-maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/analogix/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/Kconfig b/drivers/gpu/drm/bridge/analogix/Kconfig index 1425a96a28c3..e1fa7d820373 100644 --- a/drivers/gpu/drm/bridge/analogix/Kconfig +++ b/drivers/gpu/drm/bridge/analogix/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_ANALOGIX_ANX6345 tristate "Analogix ANX6345 bridge" + depends on OF select DRM_ANALOGIX_DP select DRM_KMS_HELPER select REGMAP_I2C |