From: ahemaily <ahemaily@xxxxxxxxx>s/it/it is
The variable dma_lch_count used for comparison (omap_dma_reserve_channels <= dma_lch_count)
before it initialized to the value from omap_dma_dev_attr : d->lch_count.
I change the place of dma_lch_count initialization to be before the comparison.s/I change the place of dma_lch_count initialization to be before the comparison./ Initialize dma_lch_count before it is being used for comparison.
Signed-off-by: Abdelrahman Hemaily <ahemaily@xxxxxxxxx>Change looks good to my eyes o.w
---