mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user