drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Feb 2017 03:13:30 +0000 (11:13 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:15:15 +0000 (22:15 +0100)
commitea411fd2c8d5704fc247be106026d436d27c900f
tree9a14fd007a6d87af7ab5a7c75bcf4fa33a67a045
parent903795d60ffa89918b521064b0cbcba139ae4047
drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes

sun4i_crtc_init can fail for a number of reasons. Instead of returning
a NULL pointer when it fails, pass back the encountered error using
ERR_PTR.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_crtc.c
drivers/gpu/drm/sun4i/sun4i_drv.c