mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
drm/bridge: dw-hdmi-qp: Fixes compilation errors when cec core is not compiled
Fix error: implicit declaration of function 'cec_queue_pin_hpd_event'.
Fixes: b73433e36e ("drm/rockchip: Add dw-hdmi-qp driver")
Change-Id: I9268259d42dddd285b3bb8d92a55b7df9ae3c3c1
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
@@ -3274,8 +3274,10 @@ void dw_hdmi_qp_cec_set_hpd(struct dw_hdmi_qp *hdmi, bool plug_in, bool change)
|
||||
CEC_PHYS_ADDR_INVALID);
|
||||
|
||||
if (hdmi->bridge.dev) {
|
||||
#if IS_REACHABLE(CONFIG_DRM_DW_HDMI_CEC)
|
||||
if (change && hdmi->cec_adap && hdmi->cec_adap->devnode.registered)
|
||||
cec_queue_pin_hpd_event(hdmi->cec_adap, plug_in, ktime_get());
|
||||
#endif
|
||||
drm_bridge_hpd_notify(&hdmi->bridge, status);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user