arm: common: edma: Save the number of event queues/TCs
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 14 Apr 2014 11:41:57 +0000 (14:41 +0300)
committerVinod Koul <vinod.koul@intel.com>
Tue, 22 Apr 2014 16:05:13 +0000 (21:35 +0530)
For later use save the number of queues available for the CC.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Joel Fernandes <joelf@ti.com>
Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
arch/arm/common/edma.c

index 41bca32409fce81358c3b5c35bc081bcc28e7c76..999266bf69b900df81f29238f7a9e9d3978747a7 100644 (file)
@@ -1768,6 +1768,9 @@ static int edma_probe(struct platform_device *pdev)
                        map_queue_tc(j, queue_tc_mapping[i][0],
                                        queue_tc_mapping[i][1]);
 
+               /* Save the number of TCs */
+               edma_cc[j]->num_tc = i;
+
                /* Event queue priority mapping */
                for (i = 0; queue_priority_mapping[i][0] != -1; i++)
                        assign_priority_to_queue(j,