summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mtd/sector512.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-31 17:34:44 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-31 17:34:44 -0600
commitf8d20db23e41f2cb8f1e99f8f4f7965c215c9677 (patch)
tree45c7a57c201427409d0f4b78c803d6e240f79f43 /nuttx/drivers/mtd/sector512.c
parent306de6c62392400107ea8a9d6e3aa13dd202b742 (diff)
downloadpx4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.gz
px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.tar.bz2
px4-nuttx-f8d20db23e41f2cb8f1e99f8f4f7965c215c9677.zip
Reanem kzalloc to kmm_zalloc for consistency
Diffstat (limited to 'nuttx/drivers/mtd/sector512.c')
-rw-r--r--nuttx/drivers/mtd/sector512.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/mtd/sector512.c b/nuttx/drivers/mtd/sector512.c
index f1da6df05..3b61e8210 100644
--- a/nuttx/drivers/mtd/sector512.c
+++ b/nuttx/drivers/mtd/sector512.c
@@ -603,11 +603,11 @@ FAR struct mtd_dev_s *s512_initialize(FAR struct mtd_dev_s *mtd)
* to be extended to handle multiple FLASH parts on the same SPI bus.
*/
- priv = (FAR struct s512_dev_s *)kzalloc(sizeof(struct s512_dev_s));
+ priv = (FAR struct s512_dev_s *)kmm_zalloc(sizeof(struct s512_dev_s));
if (priv)
{
/* Initialize the allocated structure. (unsupported methods/fields
- * were already nullified by kzalloc).
+ * were already nullified by kmm_zalloc).
*/
priv->mtd.erase = s512_erase;