[PATCH] drm: rcar-du: Simplify and fix probe error handling

2016-10-19 Thread Laurent Pinchart
It isn't safe to call drm_dev_unregister() without first initializing mode setting with drm_mode_config_init(). This leads to a crash if either IO memory can't be remapped or vblank initialization fails. Fix this by reordering the initialization sequence. Move vblank initialization after the

[PATCH] drm: rcar-du: Simplify and fix probe error handling

2016-10-19 Thread Laurent Pinchart
It isn't safe to call drm_dev_unregister() without first initializing mode setting with drm_mode_config_init(). This leads to a crash if either IO memory can't be remapped or vblank initialization fails. Fix this by reordering the initialization sequence. Move vblank initialization after the