Now that we have drm_mode_config_create_state() to create the initial
state called as part of drm_dev_register(), we can stop recommending
calling drm_mode_config_reset() to perform that initialization in our
skeleton.

Signed-off-by: Maxime Ripard <[email protected]>
---
 drivers/gpu/drm/drm_drv.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 
820106d56ab399a39cac56d98662b5ddbcae8ded..83752725f7c63364880225ec1083f19bd00ddcef
 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -339,12 +339,10 @@ void drm_minor_release(struct drm_minor *minor)
  *
  *             // Further setup, display pipeline etc
  *
  *             platform_set_drvdata(pdev, drm);
  *
- *             drm_mode_config_reset(drm);
- *
  *             ret = drm_dev_register(drm);
  *             if (ret)
  *                     return ret;
  *
  *             drm_fbdev_{...}_setup(drm, 32);

-- 
2.53.0

Reply via email to