MLK-12695 dma: pxp-v2: fixing the mismatch calls of pm_runtime suspend/resume
authorFancy Fang <chen.fang@nxp.com>
Fri, 22 Apr 2016 05:42:09 +0000 (13:42 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:51 +0000 (14:51 -0500)
commitfd0d1df461d7a7b88b9bd7ecb2603e70cc23a634
treedeb6def543cf5992e055505164a204640f945e69
parent86eb691eb1644e256ebd549b04327262bd9a304d
MLK-12695 dma: pxp-v2: fixing the mismatch calls of pm_runtime suspend/resume

The 'pm_runtime_get_sync()' and 'pm_runtime_put_sync_suspend()'
may be called not pairs. And this will cause the 'usage_count'
to be negative.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 10135c736dfc1b3d5c449adb78118e3642b99276)
drivers/dma/pxp/pxp_dma_v2.c