diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-07-24 11:37:33 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-07-25 21:43:36 -0400 |
commit | c88c2e0631b03ffb1485f8790a5b659beb1ac0be (patch) | |
tree | 479b2e5ca1c1448121b01d8a31c2e308c00f486f /drivers/gpu/drm/nouveau/nv50_display.c | |
parent | f1feda70b5dfdbe6a1069efffec099b430467331 (diff) |
drm/nouveau: Move display init to a new nouveau_engine.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_display.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index fbd91c251ee9..13a448985637 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c | |||
@@ -178,6 +178,17 @@ nv50_evo_channel_new(struct drm_device *dev, struct nouveau_channel **pchan) | |||
178 | } | 178 | } |
179 | 179 | ||
180 | int | 180 | int |
181 | nv50_display_early_init(struct drm_device *dev) | ||
182 | { | ||
183 | return 0; | ||
184 | } | ||
185 | |||
186 | void | ||
187 | nv50_display_late_takedown(struct drm_device *dev) | ||
188 | { | ||
189 | } | ||
190 | |||
191 | int | ||
181 | nv50_display_init(struct drm_device *dev) | 192 | nv50_display_init(struct drm_device *dev) |
182 | { | 193 | { |
183 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 194 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
@@ -528,7 +539,8 @@ int nv50_display_create(struct drm_device *dev) | |||
528 | return 0; | 539 | return 0; |
529 | } | 540 | } |
530 | 541 | ||
531 | int nv50_display_destroy(struct drm_device *dev) | 542 | void |
543 | nv50_display_destroy(struct drm_device *dev) | ||
532 | { | 544 | { |
533 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 545 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
534 | 546 | ||
@@ -538,8 +550,6 @@ int nv50_display_destroy(struct drm_device *dev) | |||
538 | 550 | ||
539 | nv50_display_disable(dev); | 551 | nv50_display_disable(dev); |
540 | nv50_evo_channel_del(&dev_priv->evo); | 552 | nv50_evo_channel_del(&dev_priv->evo); |
541 | |||
542 | return 0; | ||
543 | } | 553 | } |
544 | 554 | ||
545 | static u16 | 555 | static u16 |