diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_dac.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_dac.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_dac.c b/drivers/gpu/drm/nouveau/nv04_dac.c index 1cb19e3acb55..8066c56afa34 100644 --- a/drivers/gpu/drm/nouveau/nv04_dac.c +++ b/drivers/gpu/drm/nouveau/nv04_dac.c | |||
@@ -501,11 +501,13 @@ static const struct drm_encoder_funcs nv04_dac_funcs = { | |||
501 | .destroy = nv04_dac_destroy, | 501 | .destroy = nv04_dac_destroy, |
502 | }; | 502 | }; |
503 | 503 | ||
504 | int nv04_dac_create(struct drm_device *dev, struct dcb_entry *entry) | 504 | int |
505 | nv04_dac_create(struct drm_connector *connector, struct dcb_entry *entry) | ||
505 | { | 506 | { |
506 | const struct drm_encoder_helper_funcs *helper; | 507 | const struct drm_encoder_helper_funcs *helper; |
507 | struct drm_encoder *encoder; | ||
508 | struct nouveau_encoder *nv_encoder = NULL; | 508 | struct nouveau_encoder *nv_encoder = NULL; |
509 | struct drm_device *dev = connector->dev; | ||
510 | struct drm_encoder *encoder; | ||
509 | 511 | ||
510 | nv_encoder = kzalloc(sizeof(*nv_encoder), GFP_KERNEL); | 512 | nv_encoder = kzalloc(sizeof(*nv_encoder), GFP_KERNEL); |
511 | if (!nv_encoder) | 513 | if (!nv_encoder) |
@@ -527,5 +529,6 @@ int nv04_dac_create(struct drm_device *dev, struct dcb_entry *entry) | |||
527 | encoder->possible_crtcs = entry->heads; | 529 | encoder->possible_crtcs = entry->heads; |
528 | encoder->possible_clones = 0; | 530 | encoder->possible_clones = 0; |
529 | 531 | ||
532 | drm_mode_connector_attach_encoder(connector, encoder); | ||
530 | return 0; | 533 | return 0; |
531 | } | 534 | } |