|
@@ -491,7 +491,8 @@ static void sun4i_tcon0_mode_set_rgb(struct sun4i_tcon *tcon,
|
|
sun4i_tcon0_mode_set_common(tcon, mode);
|
|
sun4i_tcon0_mode_set_common(tcon, mode);
|
|
|
|
|
|
/* Set dithering if needed */
|
|
/* Set dithering if needed */
|
|
- sun4i_tcon0_mode_set_dithering(tcon, tcon->panel->connector);
|
|
|
|
|
|
+ if (tcon->panel)
|
|
|
|
+ sun4i_tcon0_mode_set_dithering(tcon, tcon->panel->connector);
|
|
|
|
|
|
/* Adjust clock delay */
|
|
/* Adjust clock delay */
|
|
clk_delay = sun4i_tcon_get_clk_delay(mode, 0);
|
|
clk_delay = sun4i_tcon_get_clk_delay(mode, 0);
|