From dfa8d217ebbf891d2e357d91dd2d7ebb7c14d816 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 8 Nov 2022 19:28:46 +0800 Subject: [PATCH] usb: typec: displayport: depends on DRM_ROCKCHIP To avoid the conflict of GKI, the drm_connector_oob_hotplug_event() is be completed in rockchip drm driver, not the drm framework. So add depends on DRM_ROCKCHIP, otherwise get following warning: aarch64-none-linux-gnu-ld: drivers/usb/typec/altmodes/displayport.o: in function `dp_altmode_status_update': drivers/usb/typec/altmodes/displayport.c:156: undefined reference to `drm_connector_oob_hotplug_event' Fixes: 594af86e811f ("FORMLIST: usb: typec: altmodes/displayport: Notify drm subsys of hotplug events") Signed-off-by: Tao Huang Change-Id: Id31efd89e5af47811138890ce9fbcb79da187b91 --- drivers/usb/typec/altmodes/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/typec/altmodes/Kconfig b/drivers/usb/typec/altmodes/Kconfig index 1a6b5e872b0d..64ab2d01b78c 100644 --- a/drivers/usb/typec/altmodes/Kconfig +++ b/drivers/usb/typec/altmodes/Kconfig @@ -5,6 +5,7 @@ menu "USB Type-C Alternate Mode drivers" config TYPEC_DP_ALTMODE tristate "DisplayPort Alternate Mode driver" depends on DRM + depends on DRM_ROCKCHIP help DisplayPort USB Type-C Alternate Mode allows DisplayPort displays and adapters to be attached to the USB Type-C