msm: mdss: Return success to hist start if hist is running

When histogram is already running a subsequent call to start
the histogram would return with an error. Now instead of
failing the request we return success if histogram is found
to be running already.

Change-Id: I728d8388be625ff5d8069166ad4517095a71727b
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
This commit is contained in:
Krishna Chaitanya Parimi 2014-10-31 16:21:23 +05:30 committed by David Keitel
parent 56df68ff8c
commit 9d1c95d590

View file

@ -3738,7 +3738,6 @@ static int pp_hist_enable(struct pp_hist_col_info *hist_info,
spin_unlock_irqrestore(&hist_info->hist_lock, flag);
pr_info("%s Hist collection has already been enabled %p\n",
__func__, hist_info->base);
ret = -EINVAL;
goto exit;
}
hist_info->read_request = 0;