mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Fixes for kernel stub builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3473 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include <debug.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/fs.h>
|
||||
#include <nuttx/ioctl.h>
|
||||
#include <nuttx/clock.h>
|
||||
@@ -2891,7 +2892,7 @@ static void mmcsd_hwuninitialize(FAR struct mmcsd_state_s *priv)
|
||||
if (priv)
|
||||
{
|
||||
mmcsd_removed(priv);
|
||||
SDIO_RESET(priv->dev);
|
||||
SDIO_RESET(priv->dev);
|
||||
kfree(priv);
|
||||
}
|
||||
}
|
||||
@@ -2932,7 +2933,7 @@ int mmcsd_slotinitialize(int minor, FAR struct sdio_dev_s *dev)
|
||||
#endif
|
||||
|
||||
/* Allocate a MMC/SD state structure */
|
||||
|
||||
|
||||
priv = (FAR struct mmcsd_state_s *)kmalloc(sizeof(struct mmcsd_state_s));
|
||||
if (priv)
|
||||
{
|
||||
@@ -3010,6 +3011,6 @@ errout_with_hwinit:
|
||||
errout_with_hwinit:
|
||||
#endif
|
||||
mmcsd_hwuninitialize(priv);
|
||||
errout_with_alloc:
|
||||
errout_with_alloc:
|
||||
kfree(priv);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user