|
@@ -44,7 +44,8 @@ sun8i_dw_hdmi_mode_valid(struct drm_connector *connector,
|
|
|
|
|
|
static bool sun8i_dw_hdmi_node_is_tcon_top(struct device_node *node)
|
|
static bool sun8i_dw_hdmi_node_is_tcon_top(struct device_node *node)
|
|
{
|
|
{
|
|
- return !!of_match_node(sun8i_tcon_top_of_table, node);
|
|
|
|
|
|
+ return IS_ENABLED(CONFIG_DRM_SUN8I_TCON_TOP) &&
|
|
|
|
+ !!of_match_node(sun8i_tcon_top_of_table, node);
|
|
}
|
|
}
|
|
|
|
|
|
static u32 sun8i_dw_hdmi_find_possible_crtcs(struct drm_device *drm,
|
|
static u32 sun8i_dw_hdmi_find_possible_crtcs(struct drm_device *drm,
|