aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/hdmi.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-21 08:54:26 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-22 02:51:42 -0400
commitf8fb7d7b7bbaa9336aa44675f56fd2f329516200 (patch)
tree96aee27139d13fc88d456fdd85f2b6cb68771f4b /drivers/video/omap2/dss/hdmi.c
parent5028ea04c8a8a67fe73f18f5f34386730c9c1bf2 (diff)
OMAPDSS: HDMI: fix missing unlock on error in hdmi_dump_regs()
Add the missing unlock on the error handling path in function hdmi_dump_regs(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Sumit Semwal <sumit.semwal@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/hdmi.c')
-rw-r--r--drivers/video/omap2/dss/hdmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index adcc906d12f8..0d6d7213a858 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -645,8 +645,10 @@ static void hdmi_dump_regs(struct seq_file *s)
645{ 645{
646 mutex_lock(&hdmi.lock); 646 mutex_lock(&hdmi.lock);
647 647
648 if (hdmi_runtime_get()) 648 if (hdmi_runtime_get()) {
649 mutex_unlock(&hdmi.lock);
649 return; 650 return;
651 }
650 652
651 hdmi.ip_data.ops->dump_wrapper(&hdmi.ip_data, s); 653 hdmi.ip_data.ops->dump_wrapper(&hdmi.ip_data, s);
652 hdmi.ip_data.ops->dump_pll(&hdmi.ip_data, s); 654 hdmi.ip_data.ops->dump_pll(&hdmi.ip_data, s);