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>
This commit is contained in:
Wei Yongjun 2012-10-21 20:54:26 +08:00 committed by Tomi Valkeinen
parent 5028ea04c8
commit f8fb7d7b7b
1 changed files with 3 additions and 1 deletions

View File

@ -645,8 +645,10 @@ static void hdmi_dump_regs(struct seq_file *s)
{
mutex_lock(&hdmi.lock);
if (hdmi_runtime_get())
if (hdmi_runtime_get()) {
mutex_unlock(&hdmi.lock);
return;
}
hdmi.ip_data.ops->dump_wrapper(&hdmi.ip_data, s);
hdmi.ip_data.ops->dump_pll(&hdmi.ip_data, s);