drm/tilcdc: Use unload to handle initialization failures
authorJyri Sarha <jsarha@ti.com>
Tue, 18 Oct 2016 20:23:27 +0000 (23:23 +0300)
committerJyri Sarha <jsarha@ti.com>
Tue, 29 Nov 2016 19:03:19 +0000 (21:03 +0200)
commit9e79e062dc9b3aed541d6e47ac178aff815ab0e8
tree18af796c4c0ea88b9810b6ffae7642c528b6014b
parent923310ba73d742450bb41bb017cb1b6704bd32b5
drm/tilcdc: Use unload to handle initialization failures

Use unload to handle initialization failures instead of complex goto
label mess. To do this the initialization sequence needed slight
reordering and some unload functions needed to become conditional.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h