diff options
Diffstat (limited to 'drivers/gpu/drm/pl111/pl111_drv.c')
-rw-r--r-- | drivers/gpu/drm/pl111/pl111_drv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/pl111/pl111_drv.c b/drivers/gpu/drm/pl111/pl111_drv.c index 47fe30223444..33e0483d62ae 100644 --- a/drivers/gpu/drm/pl111/pl111_drv.c +++ b/drivers/gpu/drm/pl111/pl111_drv.c | |||
@@ -194,8 +194,6 @@ static int pl111_modeset_init(struct drm_device *dev) | |||
194 | 194 | ||
195 | drm_mode_config_reset(dev); | 195 | drm_mode_config_reset(dev); |
196 | 196 | ||
197 | drm_fb_cma_fbdev_init(dev, priv->variant->fb_bpp, 0); | ||
198 | |||
199 | drm_kms_helper_poll_init(dev); | 197 | drm_kms_helper_poll_init(dev); |
200 | 198 | ||
201 | goto finish; | 199 | goto finish; |
@@ -232,7 +230,6 @@ DEFINE_DRM_GEM_CMA_FOPS(drm_fops); | |||
232 | static struct drm_driver pl111_drm_driver = { | 230 | static struct drm_driver pl111_drm_driver = { |
233 | .driver_features = | 231 | .driver_features = |
234 | DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_ATOMIC, | 232 | DRIVER_MODESET | DRIVER_GEM | DRIVER_PRIME | DRIVER_ATOMIC, |
235 | .lastclose = drm_fb_helper_lastclose, | ||
236 | .ioctls = NULL, | 233 | .ioctls = NULL, |
237 | .fops = &drm_fops, | 234 | .fops = &drm_fops, |
238 | .name = "pl111", | 235 | .name = "pl111", |
@@ -332,6 +329,8 @@ static int pl111_amba_probe(struct amba_device *amba_dev, | |||
332 | if (ret < 0) | 329 | if (ret < 0) |
333 | goto dev_put; | 330 | goto dev_put; |
334 | 331 | ||
332 | drm_fbdev_generic_setup(drm, priv->variant->fb_bpp); | ||
333 | |||
335 | return 0; | 334 | return 0; |
336 | 335 | ||
337 | dev_put: | 336 | dev_put: |
@@ -348,7 +347,6 @@ static int pl111_amba_remove(struct amba_device *amba_dev) | |||
348 | struct pl111_drm_dev_private *priv = drm->dev_private; | 347 | struct pl111_drm_dev_private *priv = drm->dev_private; |
349 | 348 | ||
350 | drm_dev_unregister(drm); | 349 | drm_dev_unregister(drm); |
351 | drm_fb_cma_fbdev_fini(drm); | ||
352 | if (priv->panel) | 350 | if (priv->panel) |
353 | drm_panel_bridge_remove(priv->bridge); | 351 | drm_panel_bridge_remove(priv->bridge); |
354 | drm_mode_config_cleanup(drm); | 352 | drm_mode_config_cleanup(drm); |