drm/sti: fix typo issue in sti_mode_config_init
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / sti / sti_drv.c
index 45c637534d963332eabe966f683a3d7a561260e6..1469987949d88f8b43cfdd97990e925156a149ec 100644 (file)
@@ -123,8 +123,8 @@ static void sti_mode_config_init(struct drm_device *dev)
         * this value would be used to check framebuffer size limitation
         * at drm_mode_addfb().
         */
-       dev->mode_config.max_width = STI_MAX_FB_HEIGHT;
-       dev->mode_config.max_height = STI_MAX_FB_WIDTH;
+       dev->mode_config.max_width = STI_MAX_FB_WIDTH;
+       dev->mode_config.max_height = STI_MAX_FB_HEIGHT;
 
        dev->mode_config.funcs = &sti_mode_config_funcs;
 }