panfrost: Properly undo pm_runtime_enable when deferring a probe
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 23 Oct 2019 12:21:57 +0000 (14:21 +0200)
committerRob Herring <robh@kernel.org>
Wed, 23 Oct 2019 17:50:47 +0000 (12:50 -0500)
commit4cad2a574d342cd9b658db6e32e9024f559383ed
treede30587dccb05942858295e61a1df626f86bbd52
parent8ae501e295cce9bc6e0dd82d5204a1d5faef44f8
panfrost: Properly undo pm_runtime_enable when deferring a probe

When deferring the probe because of a missing regulator, we were calling
pm_runtime_disable even if pm_runtime_enable wasn't called.

Move the call to pm_runtime_disable to the right place.

Fixes: 635430797d3f ("drm/panfrost: Rework runtime PM initialization")
Reported-by: Chen-Yu Tsai <wens@csie.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191023122157.32067-1-tomeu.vizoso@collabora.com
drivers/gpu/drm/panfrost/panfrost_drv.c