arm:omap:edma - replace edm_info with more relevant edma_cc
authorHebbar, Gururaja <gururaja.hebbar@ti.com>
Mon, 9 Jan 2012 09:23:52 +0000 (14:53 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:48 +0000 (00:44 +0530)
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
arch/arm/mach-omap2/devices.c

index bf5d54c44fda7f1fb1aa74b23d74a1c0b91ba739..11bd78f0ea35004fed7b7edb010a131e7208b2dc 100644 (file)
@@ -970,15 +970,15 @@ int map_xbar_event_to_channel(unsigned int event, unsigned int *channel,
        unsigned int mask = 0;
 
        ctrl = EDMA_CTLR(event);
-       xbar_evt_no = event - (edma_info[ctrl]->num_channels);
+       xbar_evt_no = event - (edma_cc[ctrl]->num_channels);
 
-       if (event < edma_info[ctrl]->num_channels) {
+       if (event < edma_cc[ctrl]->num_channels) {
                *channel = event;
-       } else if (event < edma_info[ctrl]->num_events) {
+       } else if (event < edma_cc[ctrl]->num_events) {
                *channel = xbar_event_mapping[xbar_evt_no].channel_no;
                /* confirm the range */
                if (*channel < EDMA_MAX_DMACH)
-                       clear_bit(*channel, edma_info[ctrl]->edma_unused);
+                       clear_bit(*channel, edma_cc[ctrl]->edma_unused);
                mask = (*channel)%4;
                offset = (*channel)/4;
                offset *= 4;