diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fbdev.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fbdev.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c index 89da41ac64d2..adb10fbe918d 100644 --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c | |||
| @@ -125,9 +125,8 @@ static int omap_fbdev_create(struct drm_fb_helper *helper, | |||
| 125 | mode_cmd.width = sizes->surface_width; | 125 | mode_cmd.width = sizes->surface_width; |
| 126 | mode_cmd.height = sizes->surface_height; | 126 | mode_cmd.height = sizes->surface_height; |
| 127 | 127 | ||
| 128 | mode_cmd.pitches[0] = align_pitch( | 128 | mode_cmd.pitches[0] = |
| 129 | mode_cmd.width * ((sizes->surface_bpp + 7) / 8), | 129 | DIV_ROUND_UP(mode_cmd.width * sizes->surface_bpp, 8); |
| 130 | mode_cmd.width, sizes->surface_bpp); | ||
| 131 | 130 | ||
| 132 | fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled; | 131 | fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled; |
| 133 | if (fbdev->ywrap_enabled) { | 132 | if (fbdev->ywrap_enabled) { |
| @@ -280,9 +279,6 @@ struct drm_fb_helper *omap_fbdev_init(struct drm_device *dev) | |||
| 280 | if (ret) | 279 | if (ret) |
| 281 | goto fini; | 280 | goto fini; |
| 282 | 281 | ||
| 283 | /* disable all the possible outputs/crtcs before entering KMS mode */ | ||
| 284 | drm_helper_disable_unused_functions(dev); | ||
| 285 | |||
| 286 | ret = drm_fb_helper_initial_config(helper, 32); | 282 | ret = drm_fb_helper_initial_config(helper, 32); |
| 287 | if (ret) | 283 | if (ret) |
| 288 | goto fini; | 284 | goto fini; |
