Skip to content

Commit 3a3a71f

Browse files
arndbmripard
authored andcommitted
sun6i: dsi: fix gcc-4.8
Older compilers warn about initializers with incorrect curly braces: drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c: In function 'sun6i_dsi_encoder_enable': drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:720:8: error: missing braces around initializer [-Werror=missing-braces] union phy_configure_opts opts = { 0 }; ^ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:720:8: error: (near initialization for 'opts.mipi_dphy') [-Werror=missing-braces] Use the GNU empty initializer extension to avoid this. Fixes: bb3b6fc ("sun6i: dsi: Convert to generic phy handling") Reviewed-by: Paul Kocialkowski <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c59359a commit 3a3a71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ static void sun6i_dsi_encoder_enable(struct drm_encoder *encoder)
717717
struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode;
718718
struct sun6i_dsi *dsi = encoder_to_sun6i_dsi(encoder);
719719
struct mipi_dsi_device *device = dsi->device;
720-
union phy_configure_opts opts = { 0 };
720+
union phy_configure_opts opts = { };
721721
struct phy_configure_opts_mipi_dphy *cfg = &opts.mipi_dphy;
722722
u16 delay;
723723
int err;

0 commit comments

Comments
 (0)