]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: anx6345: Fix compilation breakage on systems without CONFIG_OF
authorMaxime Ripard <maxime@cerno.tech>
Tue, 12 Nov 2019 20:45:51 +0000 (21:45 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 13 Nov 2019 08:52:44 +0000 (09:52 +0100)
commit8a310d3094ec2e358a93f22c6ee23f83c30ddd18
tree61228d97e69bd59df1ee2682b4963ae44f41a71a
parent24f4752223a7331e2c4db17fbe99e7f03a6ed43e
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: c9020b7b8b77 ("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
drivers/gpu/drm/bridge/analogix/Kconfig