diff options
author | Jyri Sarha <jsarha@ti.com> | 2016-10-18 23:23:27 +0300 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2016-11-29 21:03:19 +0200 |
commit | 9e79e062dc9b3aed541d6e47ac178aff815ab0e8 (patch) | |
tree | 18af796c4c0ea88b9810b6ffae7642c528b6014b /drivers/gpu/drm/tilcdc/tilcdc_drv.h | |
parent | 923310ba73d742450bb41bb017cb1b6704bd32b5 (diff) | |
download | lwn-9e79e062dc9b3aed541d6e47ac178aff815ab0e8.tar.gz lwn-9e79e062dc9b3aed541d6e47ac178aff815ab0e8.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_drv.h')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.h b/drivers/gpu/drm/tilcdc/tilcdc_drv.h index 9780c37ec4cd..7db23f27e9fb 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.h +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.h @@ -89,6 +89,7 @@ struct tilcdc_drm_private { struct drm_connector *connectors[8]; const struct drm_connector_helper_funcs *connector_funcs[8]; + bool is_registered; bool is_componentized; }; @@ -172,7 +173,7 @@ void tilcdc_crtc_set_simulate_vesa_sync(struct drm_crtc *crtc, bool simulate_vesa_sync); int tilcdc_crtc_mode_valid(struct drm_crtc *crtc, struct drm_display_mode *mode); int tilcdc_crtc_max_width(struct drm_crtc *crtc); -void tilcdc_crtc_disable(struct drm_crtc *crtc); +void tilcdc_crtc_off(struct drm_crtc *crtc); int tilcdc_crtc_update_fb(struct drm_crtc *crtc, struct drm_framebuffer *fb, struct drm_pending_vblank_event *event); |