diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.c b/drivers/gpu/drm/nouveau/nouveau_drv.c index eeaf1f15a42..1de5eb53e01 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.c +++ b/drivers/gpu/drm/nouveau/nouveau_drv.c | |||
@@ -263,6 +263,9 @@ nouveau_pci_resume(struct pci_dev *pdev) | |||
263 | if (dev_priv->gart_info.type == NOUVEAU_GART_AGP) | 263 | if (dev_priv->gart_info.type == NOUVEAU_GART_AGP) |
264 | nouveau_mem_reset_agp(dev); | 264 | nouveau_mem_reset_agp(dev); |
265 | 265 | ||
266 | /* Make the CRTCs accessible */ | ||
267 | engine->display.early_init(dev); | ||
268 | |||
266 | NV_INFO(dev, "POSTing device...\n"); | 269 | NV_INFO(dev, "POSTing device...\n"); |
267 | ret = nouveau_run_vbios_init(dev); | 270 | ret = nouveau_run_vbios_init(dev); |
268 | if (ret) | 271 | if (ret) |
@@ -325,10 +328,7 @@ nouveau_pci_resume(struct pci_dev *pdev) | |||
325 | NV_ERROR(dev, "Could not pin/map cursor.\n"); | 328 | NV_ERROR(dev, "Could not pin/map cursor.\n"); |
326 | } | 329 | } |
327 | 330 | ||
328 | if (dev_priv->card_type < NV_50) | 331 | engine->display.init(dev); |
329 | nv04_display_restore(dev); | ||
330 | else | ||
331 | nv50_display_init(dev); | ||
332 | 332 | ||
333 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { | 333 | list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { |
334 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); | 334 | struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); |