diff options
author | Rob Clark <robdclark@gmail.com> | 2014-07-17 23:30:01 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-18 14:24:49 +1000 |
commit | bf02d87fa458a665c176eaefd58d29bc615a8875 (patch) | |
tree | 294e93720bf2349451d91fc4a3673df1de1f765e /drivers | |
parent | c7e951147d92319e1d2477628abfa36f277f887e (diff) | |
download | op-kernel-dev-bf02d87fa458a665c176eaefd58d29bc615a8875.zip op-kernel-dev-bf02d87fa458a665c176eaefd58d29bc615a8875.tar.gz |
drm/udl: use helpers
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/udl/udl_connector.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c index dea38ab..e026a9e 100644 --- a/drivers/gpu/drm/udl/udl_connector.c +++ b/drivers/gpu/drm/udl/udl_connector.c @@ -105,14 +105,7 @@ static struct drm_encoder* udl_best_single_encoder(struct drm_connector *connector) { int enc_id = connector->encoder_ids[0]; - struct drm_mode_object *obj; - struct drm_encoder *encoder; - - obj = drm_mode_object_find(connector->dev, enc_id, DRM_MODE_OBJECT_ENCODER); - if (!obj) - return NULL; - encoder = obj_to_encoder(obj); - return encoder; + return drm_encoder_find(connector->dev, enc_id); } static int udl_connector_set_property(struct drm_connector *connector, |