drm/rockchip: fix compile error when rockchip drm build as module

Change-Id: Ifb67d3799b7fdc6aeadbb2a36df294c656aef0e2
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang
2020-07-09 14:33:53 +08:00
committed by Tao Huang
parent 6e32dce021
commit 972d5ed2eb

View File

@@ -773,22 +773,6 @@ static int update_state(struct drm_device *drm_dev,
return ret;
}
static bool is_support_hotplug(uint32_t output_type)
{
switch (output_type) {
case DRM_MODE_CONNECTOR_DVII:
case DRM_MODE_CONNECTOR_DVID:
case DRM_MODE_CONNECTOR_DVIA:
case DRM_MODE_CONNECTOR_DisplayPort:
case DRM_MODE_CONNECTOR_HDMIA:
case DRM_MODE_CONNECTOR_HDMIB:
case DRM_MODE_CONNECTOR_TV:
return true;
default:
return false;
}
}
static void show_loader_logo(struct drm_device *drm_dev)
{
struct drm_atomic_state *state, *old_state;
@@ -1394,6 +1378,22 @@ err_unlock:
drm_modeset_unlock_all(drm);
}
static bool is_support_hotplug(uint32_t output_type)
{
switch (output_type) {
case DRM_MODE_CONNECTOR_DVII:
case DRM_MODE_CONNECTOR_DVID:
case DRM_MODE_CONNECTOR_DVIA:
case DRM_MODE_CONNECTOR_DisplayPort:
case DRM_MODE_CONNECTOR_HDMIA:
case DRM_MODE_CONNECTOR_HDMIB:
case DRM_MODE_CONNECTOR_TV:
return true;
default:
return false;
}
}
static int rockchip_drm_bind(struct device *dev)
{
struct drm_device *drm_dev;