Commit 4726f1ff authored by Rob Clark's avatar Rob Clark Committed by Dave Airlie

drm/exynos: use helpers

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ef13aec4
...@@ -117,20 +117,7 @@ static struct drm_encoder *exynos_drm_best_encoder( ...@@ -117,20 +117,7 @@ static struct drm_encoder *exynos_drm_best_encoder(
struct drm_device *dev = connector->dev; struct drm_device *dev = connector->dev;
struct exynos_drm_connector *exynos_connector = struct exynos_drm_connector *exynos_connector =
to_exynos_connector(connector); to_exynos_connector(connector);
struct drm_mode_object *obj; return drm_encoder_find(dev, exynos_connector->encoder_id);
struct drm_encoder *encoder;
obj = drm_mode_object_find(dev, exynos_connector->encoder_id,
DRM_MODE_OBJECT_ENCODER);
if (!obj) {
DRM_DEBUG_KMS("Unknown ENCODER ID %d\n",
exynos_connector->encoder_id);
return NULL;
}
encoder = obj_to_encoder(obj);
return encoder;
} }
static struct drm_connector_helper_funcs exynos_connector_helper_funcs = { static struct drm_connector_helper_funcs exynos_connector_helper_funcs = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment