msm: mdp3: use INIT_COMPLETION for re-initialization of histo_comp variable

Using 'init_completion' to re-initialize the dma->histo_comp variable
during histogram reset,start and histo_get can lead to a condition where
the completion variable's wait_queue structure gets cleared while there
are tasks still waiting on it. This can lead to list_del corruption error
when the task is woken up by the next 'complete' call. To avoid this
scenario, replace 'init_completion' with 'INIT_COMPLETION' for
re-initialization scenarios in the histogram flow. During one time
intiialization of the 'dma->histo_comp' variable, 'init_completion'
is used.

Change-Id: Iee3c362c604db9dd167effc106cb12023d85ac2e
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
1 file changed