linux_dsm_epyc7002/drivers/gpu/drm/sun4i
Arnd Bergmann 9fa2568d9f drm: sun4i: fix probe error handling
gcc points out a possible uninitialized variable use in
sun4i_dclk_create():

drivers/gpu/drm/sun4i/sun4i_dotclock.c: In function 'sun4i_dclk_create':
drivers/gpu/drm/sun4i/sun4i_dotclock.c:139:12: error: 'clk_name' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  init.name = clk_name;

The warning only shows up when CONFIG_OF is disabled, and the
property is never filled, but the same bug can show up even
when CONFIG_OF is enabled but of_property_read_string_index
returns another error.

To fix it, this ensures that sun4i_dclk_create propagates
any error from of_property_read_string_index.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 9026e0d122 ("drm: Add Allwinner A10 Display Engine support")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2016-05-30 08:28:33 +02:00
..
Kconfig drm/sun4i: add COMMON_CLK dependency 2016-05-30 08:28:33 +02:00
Makefile drm: sun4i: Add composite output 2016-04-28 10:30:05 +02:00
sun4i_backend.c drm: sun4i: print DMA address correctly 2016-05-30 08:28:33 +02:00
sun4i_backend.h
sun4i_crtc.c
sun4i_crtc.h
sun4i_dotclock.c drm: sun4i: fix probe error handling 2016-05-30 08:28:33 +02:00
sun4i_dotclock.h
sun4i_drv.c
sun4i_drv.h
sun4i_framebuffer.c
sun4i_framebuffer.h
sun4i_layer.c
sun4i_layer.h
sun4i_rgb.c
sun4i_rgb.h
sun4i_tcon.c
sun4i_tcon.h
sun4i_tv.c drm: sun4i: tv: Add NTSC output standard 2016-04-28 10:30:05 +02:00