diff options
author | Rob Clark <robdclark@gmail.com> | 2014-07-18 07:29:59 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-18 08:24:34 +0400 |
commit | 4726f1ff50e8da000a9af7bfbdb3af54d39a17bd (patch) | |
tree | 0dcb59846cb71857001809b87f23e30cdcf3e4a3 | |
parent | ef13aec45406b31969571f9cb3872a2654d06a66 (diff) | |
download | linux-4726f1ff50e8da000a9af7bfbdb3af54d39a17bd.tar.xz |
drm/exynos: use helpers
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_connector.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_connector.c b/drivers/gpu/drm/exynos/exynos_drm_connector.c index 25c788832e2e..ba9b3d5ed672 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_connector.c +++ b/drivers/gpu/drm/exynos/exynos_drm_connector.c @@ -117,20 +117,7 @@ static struct drm_encoder *exynos_drm_best_encoder( struct drm_device *dev = connector->dev; struct exynos_drm_connector *exynos_connector = to_exynos_connector(connector); - struct drm_mode_object *obj; - 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; + return drm_encoder_find(dev, exynos_connector->encoder_id); } static struct drm_connector_helper_funcs exynos_connector_helper_funcs = { |