mirror of https://gitee.com/openkylin/linux.git
drm/i915/ddi: warn instead of oops on invalid ddi encoder type
It's more useful to limp on than bring the kernel down. Hitting this is a more likely event with BXT DSI, although care should be taken not to call the function for DSI. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
7bad74d57c
commit
85b98a4c30
|
@ -322,8 +322,7 @@ static void ddi_get_encoder_port(struct intel_encoder *intel_encoder,
|
|||
*dig_port = NULL;
|
||||
*port = PORT_E;
|
||||
} else {
|
||||
DRM_ERROR("Invalid DDI encoder type %d\n", type);
|
||||
BUG();
|
||||
WARN(1, "Invalid DDI encoder type %d\n", type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue