drm/msm/a6xx: Drop the device reference in gmu
authorSean Paul <seanpaul@chromium.org>
Thu, 23 May 2019 17:16:44 +0000 (13:16 -0400)
committerSean Paul <seanpaul@chromium.org>
Fri, 24 May 2019 13:53:50 +0000 (09:53 -0400)
commit998efc74672c2d9d1b5d5e02b21cca7ed9135274
tree96900bb0d71ad21e023c1403106c7bf6d5c45a00
parenta62fb211ad0c9e13e79d350905a704f46447b8cf
drm/msm/a6xx: Drop the device reference in gmu

of_find_device_by_node() grabs a dev reference, so make sure we clear it
on error and remove.

Changes in v2:
- Added to the set (Jordan)

Cc: Jordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190523171653.138678-5-sean@poorly.run
drivers/gpu/drm/msm/adreno/a6xx_gmu.c