diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 5d20a72a186f..3ac72c2bcb2c 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -429,10 +429,12 @@ static void repo_hpd_event(struct work_struct *p_work) if (change) { if (hdmi->plat_data->set_ddc_io) hdmi->plat_data->set_ddc_io(data, hdmi->hpd_state); +#if IS_REACHABLE(CONFIG_DRM_DW_HDMI_CEC) if (hdmi->cec_adap->devnode.registered) cec_queue_pin_hpd_event(hdmi->cec_adap, hdmi->hpd_state, ktime_get()); +#endif } drm_bridge_hpd_notify(&hdmi->bridge, status); }