drm/armada: fix clock counts
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 4 Oct 2016 21:19:57 +0000 (22:19 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 4 Oct 2016 21:20:00 +0000 (22:20 +0100)
commitea908ba8f73446dfbf87ff71f7cadb1994d2c5bb
treef484dd7c9dac8bf30cfa6e768dfa115ed8664378
parentc8d2bc9bc39ebea8437fd974fdbc21847bb897a3
drm/armada: fix clock counts

The DPMS handling wrt clock enables/disables was incorrect: we could end
up decrementing the clock count multiple times if we transition via
several low-power DPMS states, resulting in a kernel warning.  Fix this
by only testing to see whether we are entering or exiting the DPMS off
state.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_crtc.c