drm: atmel-hlcdc: use appropriate enabled flag in suspend/resume
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Thu, 12 Mar 2015 18:47:19 +0000 (19:47 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 16 Mar 2015 15:10:42 +0000 (16:10 +0100)
commitf026eb6e031f704fad991fdeb76c40d7c4a301bd
tree9e757b381a444d11bbe365362d723c2cdff679d3
parent03be70050c85768e9ce7c0d0887110d1b629e127
drm: atmel-hlcdc: use appropriate enabled flag in suspend/resume

Unfortunately we used the enabled flag in struct drm_crtc instead of the
enabled flag in struct atmel_hlcdc_crtc. This obviously leads to
discrepancies on crtc enable state.

This patch fixes the issue by using the struct atmel_hlcdc_crtc enabled
flag in PM support.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h