aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv17_tv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv17_tv.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv17_tv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv17_tv.c b/drivers/gpu/drm/nouveau/nv17_tv.c
index 74c880374fb9..44437ff46394 100644
--- a/drivers/gpu/drm/nouveau/nv17_tv.c
+++ b/drivers/gpu/drm/nouveau/nv17_tv.c
@@ -744,8 +744,10 @@ static struct drm_encoder_funcs nv17_tv_funcs = {
744 .destroy = nv17_tv_destroy, 744 .destroy = nv17_tv_destroy,
745}; 745};
746 746
747int nv17_tv_create(struct drm_device *dev, struct dcb_entry *entry) 747int
748nv17_tv_create(struct drm_connector *connector, struct dcb_entry *entry)
748{ 749{
750 struct drm_device *dev = connector->dev;
749 struct drm_encoder *encoder; 751 struct drm_encoder *encoder;
750 struct nv17_tv_encoder *tv_enc = NULL; 752 struct nv17_tv_encoder *tv_enc = NULL;
751 753
@@ -774,5 +776,7 @@ int nv17_tv_create(struct drm_device *dev, struct dcb_entry *entry)
774 encoder->possible_crtcs = entry->heads; 776 encoder->possible_crtcs = entry->heads;
775 encoder->possible_clones = 0; 777 encoder->possible_clones = 0;
776 778
779 nv17_tv_create_resources(encoder, connector);
780 drm_mode_connector_attach_encoder(connector, encoder);
777 return 0; 781 return 0;
778} 782}