drm/vc4: Fix refcounting of runtime PM get if it errors out. 13/148513/2
authorEric Anholt <eric@anholt.net>
Mon, 17 Apr 2017 16:26:03 +0000 (09:26 -0700)
committerInki Dae <inki.dae@samsung.com>
Fri, 8 Sep 2017 05:05:51 +0000 (14:05 +0900)
commit58ea6dc1bb869a94bfbc338c0f808b36ad878250
treeeed7e2519316eed76fccbee40874f96b18ca590d
parentd54804b0e214804f0daabb045a09c04e4f8b226f
drm/vc4: Fix refcounting of runtime PM get if it errors out.

We were returning without decrementing if the error happened, meaning
that at the next submit we wouldn't try to bring up the power domain.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170417162603.12726-1-eric@anholt.net
Reviewed-by: Sean Paul <seanpaul@chromium.org>
(cherry picked from commit 925d05e1f825db9490da33afe35bd5383d301e97)

[inki.dae: apply from rpi3-4.9.y]
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Change-Id: Ib6a94bf23f289b6385373727fe54146ce25dddc6
drivers/gpu/drm/vc4/vc4_gem.c