summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc55xx/edma/edma.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-11-30 17:13:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-11-30 17:13:28 +0000
commit95b18d0118604f46d778ead3a6525b2854fd6ae0 (patch)
tree02b277738d6a9b30fac0da958a496dbfb4118035 /c/src/lib/libcpu/powerpc/mpc55xx/edma/edma.c
parent2010-11-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-95b18d0118604f46d778ead3a6525b2854fd6ae0.tar.bz2
2010-11-30 Joel Sherrill <joel.sherrilL@OARcorp.com>
* mpc55xx/edma/edma.c: Use rtems_chain_first() and do not directly access the structure.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc55xx/edma/edma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/edma/edma.c b/c/src/lib/libcpu/powerpc/mpc55xx/edma/edma.c
index 4026fca522..0c9464cd32 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/edma/edma.c
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/edma/edma.c
@@ -69,7 +69,7 @@ static void mpc55xx_edma_interrupt_handler( void *arg)
static void mpc55xx_edma_interrupt_error_handler( void *arg)
{
rtems_chain_control *chain = &mpc55xx_edma_channel_chain;
- rtems_chain_node *node = chain->first;
+ rtems_chain_node *node = rtems_chain_first( chain );
unsigned i = 0;
uint64_t error_status = EDMA.ESR.R;
uint64_t error_channels = ((uint64_t) EDMA.ERH.R << 32) | EDMA.ERL.R;