summaryrefslogtreecommitdiff
path: root/nuttx/drivers/usbhost/usbhost_storage.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-16 00:49:02 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-16 00:49:02 +0000
commit86a38f248f430276682e5e8d357f74f8b8bcb99c (patch)
treeb8e2d2308503e72fc0b8994e38eb28d8aaf3090d /nuttx/drivers/usbhost/usbhost_storage.c
parent5d449ef3904b7130000b729f6e97f66d8ff99fe0 (diff)
downloadpx4-nuttx-86a38f248f430276682e5e8d357f74f8b8bcb99c.tar.gz
px4-nuttx-86a38f248f430276682e5e8d357f74f8b8bcb99c.tar.bz2
px4-nuttx-86a38f248f430276682e5e8d357f74f8b8bcb99c.zip
Changes to get USB host driver compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3185 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_storage.c')
-rw-r--r--nuttx/drivers/usbhost/usbhost_storage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_storage.c b/nuttx/drivers/usbhost/usbhost_storage.c
index 618333b2f..5142871eb 100644
--- a/nuttx/drivers/usbhost/usbhost_storage.c
+++ b/nuttx/drivers/usbhost/usbhost_storage.c
@@ -49,6 +49,8 @@
#include <nuttx/usb/usb.h>
#include <nuttx/usb/usbhost.h>
+#if defined(CONFIG_USBHOST) && !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0
+
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@@ -1034,3 +1036,4 @@ int usbhost_storageinit(void)
return usbhost_registerclass(&g_storage);
}
+#endif /* CONFIG_USBHOST && !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 */