Skip to content

Commit

Permalink
drm/tilcdc: Add drm_mode_config_reset() call to tilcdc_load()
Browse files Browse the repository at this point in the history
Add drm_mode_config_reset() call to tilcdc_load(). This is need to
initialize atomic state variables at load time.

Signed-off-by: Jyri Sarha <[email protected]>
  • Loading branch information
Jyri Sarha committed Aug 8, 2016
1 parent edc4330 commit 522a76f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/tilcdc/tilcdc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ static int tilcdc_load(struct drm_device *dev, unsigned long flags)
}

drm_helper_disable_unused_functions(dev);

drm_mode_config_reset(dev);

priv->fbdev = drm_fbdev_cma_init(dev, bpp,
dev->mode_config.num_crtc,
dev->mode_config.num_connector);
Expand Down

0 comments on commit 522a76f

Please sign in to comment.