msm: vidc: flush work handler before unloading firmware

In case if the spurious interrupts is handled, while the
poweroff is done at the time of unloading firmware, can
create crashes in iommu_attach_device. So, the
core work handler need to be flushed before doing
power off and unloading the venus firmware.

Change-Id: I6a9c5911da855c6d530fd4683a3d9ebebb45c1b0
Signed-off-by: Balamurugan Alagarsamy <balaga@codeaurora.org>
1 file changed