Re: [PATCH 7/7] drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes

2017-02-21 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 11:13:30AM +0800, Chen-Yu Tsai wrote: > 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 Applied, thanks! Maxime --

Re: [PATCH 7/7] drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes

2017-02-21 Thread Maxime Ripard
On Fri, Feb 17, 2017 at 11:13:30AM +0800, Chen-Yu Tsai wrote: > 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 Applied, thanks! Maxime -- Maxime Ripard,

[PATCH 7/7] drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes

2017-02-16 Thread Chen-Yu Tsai
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 --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 4 ++-- drivers/gpu/drm/sun4i/sun4i_drv.c | 4 ++-- 2 files

[PATCH 7/7] drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes

2017-02-16 Thread Chen-Yu Tsai
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 --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 4 ++-- drivers/gpu/drm/sun4i/sun4i_drv.c | 4 ++-- 2 files changed, 4