diff options
Diffstat (limited to 'nuttx/drivers/mtd/sst25xx.c')
-rw-r--r-- | nuttx/drivers/mtd/sst25xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/mtd/sst25xx.c b/nuttx/drivers/mtd/sst25xx.c index f6bcb53a7..8598dd51d 100644 --- a/nuttx/drivers/mtd/sst25xx.c +++ b/nuttx/drivers/mtd/sst25xx.c @@ -952,11 +952,11 @@ FAR struct mtd_dev_s *sst25xx_initialize(FAR struct spi_dev_s *dev) * to be extended to handle multiple FLASH parts on the same SPI bus. */ - priv = (FAR struct sst25xx_dev_s *)kzalloc(sizeof(struct sst25xx_dev_s)); + priv = (FAR struct sst25xx_dev_s *)kmm_zalloc(sizeof(struct sst25xx_dev_s)); if (priv) { /* Initialize the allocated structure. (unsupported methods were - * nullified by kzalloc). + * nullified by kmm_zalloc). */ priv->mtd.erase = sst25xx_erase; |