From f8d20db23e41f2cb8f1e99f8f4f7965c215c9677 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 31 Aug 2014 17:34:44 -0600 Subject: Reanem kzalloc to kmm_zalloc for consistency --- nuttx/audio/audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuttx/audio/audio.c') diff --git a/nuttx/audio/audio.c b/nuttx/audio/audio.c index 3f0c9ebfb..763789c4d 100644 --- a/nuttx/audio/audio.c +++ b/nuttx/audio/audio.c @@ -882,14 +882,14 @@ int audio_register(FAR const char *name, FAR struct audio_lowerhalf_s *dev) /* Allocate the upper-half data structure */ - upper = (FAR struct audio_upperhalf_s *)kzalloc(sizeof(struct audio_upperhalf_s)); + upper = (FAR struct audio_upperhalf_s *)kmm_zalloc(sizeof(struct audio_upperhalf_s)); if (!upper) { auddbg("Allocation failed\n"); return -ENOMEM; } - /* Initialize the Audio device structure (it was already zeroed by kzalloc()) */ + /* Initialize the Audio device structure (it was already zeroed by kmm_zalloc()) */ sem_init(&upper->exclsem, 0, 1); upper->dev = dev; -- cgit v1.2.3