summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mtd/ramtron.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/mtd/ramtron.c')
-rw-r--r--nuttx/drivers/mtd/ramtron.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/mtd/ramtron.c b/nuttx/drivers/mtd/ramtron.c
index 285dc2dad..1c59b0567 100644
--- a/nuttx/drivers/mtd/ramtron.c
+++ b/nuttx/drivers/mtd/ramtron.c
@@ -689,11 +689,11 @@ FAR struct mtd_dev_s *ramtron_initialize(FAR struct spi_dev_s *dev)
* to be extended to handle multiple FLASH parts on the same SPI bus.
*/
- priv = (FAR struct ramtron_dev_s *)kzalloc(sizeof(struct ramtron_dev_s));
+ priv = (FAR struct ramtron_dev_s *)kmm_zalloc(sizeof(struct ramtron_dev_s));
if (priv)
{
/* Initialize the allocated structure. (unsupported methods were
- * nullified by kzalloc).
+ * nullified by kmm_zalloc).
*/
priv->mtd.erase = ramtron_erase;