MLK-11594 video: mxsfb: correct the pm runtime logic
authorFancy Fang <chen.fang@freescale.com>
Mon, 21 Sep 2015 07:37:08 +0000 (15:37 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:35 +0000 (14:48 -0500)
commite699e63bb5c2a362d4c513b2176e73ea316114b9
treea70499f8584b57861013a6ecf21a23635dd6c6e7
parent55980fa2e634bd3825d495df0b92803074bfd64a
MLK-11594 video: mxsfb: correct the pm runtime logic

The pm power's usage_count should be first added by
one before putting it into suspend state. Otherwise
the usage_count will be negative and the power cannot
be put into suspend state correctly.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
(cherry picked from commit a48460b41399112f5d3ae03b30e3f9e885346ff7)

Conflicts:
drivers/video/mxsfb.c
drivers/video/fbdev/mxsfb.c