Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.75 KB | None | 0 0
  1. diff --git a/drivers/gpu/drm/sun4i/sun4i_rgb.c b/drivers/gpu/drm/sun4i/sun4i_rgb.c
  2. index f5bbac6..d6943e9 100644
  3. --- a/drivers/gpu/drm/sun4i/sun4i_rgb.c
  4. +++ b/drivers/gpu/drm/sun4i/sun4i_rgb.c
  5. @@ -151,6 +151,7 @@ static void sun4i_rgb_encoder_enable(struct drm_encoder *encoder)
  6.  
  7.         DRM_DEBUG_DRIVER("Enabling RGB output\n");
  8.  
  9. +       drm_panel_prepare(tcon->panel);
  10.         drm_panel_enable(tcon->panel);
  11.         sun4i_tcon_channel_enable(tcon, 0);
  12.  }
  13. @@ -165,6 +166,7 @@ static void sun4i_rgb_encoder_disable(struct drm_encoder *encoder)
  14.  
  15.         sun4i_tcon_channel_disable(tcon, 0);
  16.         drm_panel_disable(tcon->panel);
  17. +       drm_panel_unprepare(tcon->panel);
  18.  }
  19.  
  20.  static void sun4i_rgb_encoder_mode_set(struct drm_encoder *encoder,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement