summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sama5/sam_emaca.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-31 14:57:31 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-31 14:57:31 -0600
commitbdf39bd497954930d2176540594f2e0d046a31af (patch)
tree21f88e0d00d7c278669504bce9a2f9b6bd8c0464 /nuttx/arch/arm/src/sama5/sam_emaca.c
parentdab33d3473f9d7ad40131d7a018053c745bfdd2f (diff)
downloadpx4-nuttx-bdf39bd497954930d2176540594f2e0d046a31af.tar.gz
px4-nuttx-bdf39bd497954930d2176540594f2e0d046a31af.tar.bz2
px4-nuttx-bdf39bd497954930d2176540594f2e0d046a31af.zip
Rename kmemalign to kmm_memalign for consitency with other naming
Diffstat (limited to 'nuttx/arch/arm/src/sama5/sam_emaca.c')
-rw-r--r--nuttx/arch/arm/src/sama5/sam_emaca.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_emaca.c b/nuttx/arch/arm/src/sama5/sam_emaca.c
index 4a8555ef5..50e1f1a49 100644
--- a/nuttx/arch/arm/src/sama5/sam_emaca.c
+++ b/nuttx/arch/arm/src/sama5/sam_emaca.c
@@ -593,7 +593,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv)
/* Allocate buffers */
allocsize = CONFIG_SAMA5_EMAC_NTXBUFFERS * sizeof(struct emac_txdesc_s);
- priv->txdesc = (struct emac_txdesc_s *)kmemalign(8, allocsize);
+ priv->txdesc = (struct emac_txdesc_s *)kmm_memalign(8, allocsize);
if (!priv->txdesc)
{
nlldbg("ERROR: Failed to allocate TX descriptors\n");
@@ -603,7 +603,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv)
memset(priv->txdesc, 0, allocsize);
allocsize = CONFIG_SAMA5_EMAC_NRXBUFFERS * sizeof(struct emac_rxdesc_s);
- priv->rxdesc = (struct emac_rxdesc_s *)kmemalign(8, allocsize);
+ priv->rxdesc = (struct emac_rxdesc_s *)kmm_memalign(8, allocsize);
if (!priv->rxdesc)
{
nlldbg("ERROR: Failed to allocate RX descriptors\n");
@@ -614,7 +614,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv)
memset(priv->rxdesc, 0, allocsize);
allocsize = CONFIG_SAMA5_EMAC_NTXBUFFERS * EMAC_TX_UNITSIZE;
- priv->txbuffer = (uint8_t *)kmemalign(8, allocsize);
+ priv->txbuffer = (uint8_t *)kmm_memalign(8, allocsize);
if (!priv->txbuffer)
{
nlldbg("ERROR: Failed to allocate TX buffer\n");
@@ -623,7 +623,7 @@ static int sam_buffer_initialize(struct sam_emac_s *priv)
}
allocsize = CONFIG_SAMA5_EMAC_NRXBUFFERS * EMAC_RX_UNITSIZE;
- priv->rxbuffer = (uint8_t *)kmemalign(8, allocsize);
+ priv->rxbuffer = (uint8_t *)kmm_memalign(8, allocsize);
if (!priv->rxbuffer)
{
nlldbg("ERROR: Failed to allocate RX buffer\n");