drm: atmel-hlcdc: fix atmel_hlcdc_crtc_reset() implementation
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 22 Apr 2016 19:28:32 +0000 (21:28 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 1 Jun 2016 13:59:35 +0000 (15:59 +0200)
commitc2e4c99444f418b3c3b13b58dad4d951aa2f7f1b
tree270abc7f26d8790fc8e2ade47ec1716069cd92ef
parent1a695a905c18548062509178b98bc91e67510864
drm: atmel-hlcdc: fix atmel_hlcdc_crtc_reset() implementation

Reset crtc->state to NULL after freeing the state object and call
__drm_atomic_helper_crtc_destroy_state() helper instead of manually
calling drm_property_unreference_blob().

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c