spi_qsd: Correct an error reporting check

When reading values from the device tree, the error
check on BAM producer pipe must be negated.

Change-Id: Ia766cabdde47390c5a3c79b1c98a704e695fc571
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
This commit is contained in:
Gilad Avidov 2013-07-11 15:59:45 -06:00 committed by Gerrit - the friendly Code Review server
parent d10f7f95c5
commit c0465dcdd1

View file

@ -2719,7 +2719,7 @@ struct msm_spi_platform_data * __init msm_spi_dt_to_pdata(
pdata->use_bam = false;
}
if (pdata->bam_producer_pipe_index) {
if (!pdata->bam_producer_pipe_index) {
dev_warn(&pdev->dev,
"missing qcom,bam-producer-pipe-index entry in device-tree\n");
pdata->use_bam = false;