Commit 0e2ffea0 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Greg Kroah-Hartman

s5p-mfc: Fix unbalanced call to clock management

commit a5cb00eb upstream.

Clock should be turned off after calling s5p_mfc_init_hw() from the
watchdog worker, like it is already done in the s5p_mfc_open() which also
calls this function.

Fixes: af935746 ("[media] MFC: Add MFC 5.1 V4L2 driver")
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 15d36bba
...@@ -169,6 +169,7 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work) ...@@ -169,6 +169,7 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work)
} }
s5p_mfc_clock_on(); s5p_mfc_clock_on();
ret = s5p_mfc_init_hw(dev); ret = s5p_mfc_init_hw(dev);
s5p_mfc_clock_off();
if (ret) if (ret)
mfc_err("Failed to reinit FW\n"); mfc_err("Failed to reinit FW\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment