diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 58b46807de2..23e67bf0898 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include "nouveau_drv.h" | 34 | #include "nouveau_drv.h" |
35 | #include "nouveau_drm.h" | 35 | #include "nouveau_drm.h" |
36 | #include "nouveau_fbcon.h" | ||
36 | #include "nv50_display.h" | 37 | #include "nv50_display.h" |
37 | 38 | ||
38 | static void nouveau_stub_takedown(struct drm_device *dev) {} | 39 | static void nouveau_stub_takedown(struct drm_device *dev) {} |
@@ -511,7 +512,7 @@ nouveau_card_init(struct drm_device *dev) | |||
511 | dev_priv->init_state = NOUVEAU_CARD_INIT_DONE; | 512 | dev_priv->init_state = NOUVEAU_CARD_INIT_DONE; |
512 | 513 | ||
513 | if (drm_core_check_feature(dev, DRIVER_MODESET)) | 514 | if (drm_core_check_feature(dev, DRIVER_MODESET)) |
514 | drm_helper_initial_config(dev); | 515 | nouveau_fbcon_init(dev); |
515 | 516 | ||
516 | return 0; | 517 | return 0; |
517 | 518 | ||
@@ -552,6 +553,7 @@ static void nouveau_card_takedown(struct drm_device *dev) | |||
552 | NV_DEBUG(dev, "prev state = %d\n", dev_priv->init_state); | 553 | NV_DEBUG(dev, "prev state = %d\n", dev_priv->init_state); |
553 | 554 | ||
554 | if (dev_priv->init_state != NOUVEAU_CARD_INIT_DOWN) { | 555 | if (dev_priv->init_state != NOUVEAU_CARD_INIT_DOWN) { |
556 | |||
555 | nouveau_backlight_exit(dev); | 557 | nouveau_backlight_exit(dev); |
556 | 558 | ||
557 | if (dev_priv->channel) { | 559 | if (dev_priv->channel) { |
@@ -783,6 +785,7 @@ int nouveau_unload(struct drm_device *dev) | |||
783 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 785 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
784 | 786 | ||
785 | if (drm_core_check_feature(dev, DRIVER_MODESET)) { | 787 | if (drm_core_check_feature(dev, DRIVER_MODESET)) { |
788 | nouveau_fbcon_fini(dev); | ||
786 | if (dev_priv->card_type >= NV_50) | 789 | if (dev_priv->card_type >= NV_50) |
787 | nv50_display_destroy(dev); | 790 | nv50_display_destroy(dev); |
788 | else | 791 | else |