You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/11/21 14:34:34 UTC

[incubator-nuttx] 01/02: arch: lc823450: Fix compile errors in lc823450_usbdev.c with CONFIG_USBDEV_DMA=y

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 983117210cd10f9eac5af9224d148344ebc731a5
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Sat Nov 21 08:56:04 2020 +0900

    arch: lc823450: Fix compile errors in lc823450_usbdev.c with CONFIG_USBDEV_DMA=y
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 arch/arm/src/lc823450/lc823450_usbdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/lc823450/lc823450_usbdev.c b/arch/arm/src/lc823450/lc823450_usbdev.c
index 7a98419..2401c6b 100644
--- a/arch/arm/src/lc823450/lc823450_usbdev.c
+++ b/arch/arm/src/lc823450/lc823450_usbdev.c
@@ -618,7 +618,7 @@ static void *lc823450_epallocbuffer(struct usbdev_ep_s *ep, uint16_t bytes)
 #  ifdef CONFIG_USBDEV_DMAMEMORY
   return usbdev_dma_alloc(bytes);
 #  else
-  return kmm_alloc(bytes);
+  return kmm_malloc(bytes);
 #  endif
 }
 #endif