summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mmcsd/mmcsd_spi.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-06 14:57:01 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-06 14:57:01 +0000
commit7255c5059df9df0082bea450d6cf379ede2ac2d0 (patch)
treefa7c3ed0efb7ac7776edda9b1792a402e9ae827d /nuttx/drivers/mmcsd/mmcsd_spi.c
parent119a414f4b6ab45cb76ce1ed2704a56ad5ca639c (diff)
downloadpx4-nuttx-7255c5059df9df0082bea450d6cf379ede2ac2d0.tar.gz
px4-nuttx-7255c5059df9df0082bea450d6cf379ede2ac2d0.tar.bz2
px4-nuttx-7255c5059df9df0082bea450d6cf379ede2ac2d0.zip
Patch to removed MMCSD NSLOTS warning from Freddie Chopin
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5316 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mmcsd/mmcsd_spi.c')
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_spi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_spi.c b/nuttx/drivers/mmcsd/mmcsd_spi.c
index 39b570581..d437b7fea 100644
--- a/nuttx/drivers/mmcsd/mmcsd_spi.c
+++ b/nuttx/drivers/mmcsd/mmcsd_spi.c
@@ -38,6 +38,9 @@
****************************************************************************/
#include <nuttx/config.h>
+
+#if defined (CONFIG_MMCSD) && defined (CONFIG_MMCSD_SPI)
+
#include <sys/types.h>
#include <stdint.h>
@@ -1878,3 +1881,5 @@ int mmcsd_spislotinitialize(int minor, int slotno, FAR struct spi_dev_s *spi)
(void)SPI_REGISTERCALLBACK(spi, mmcsd_mediachanged, (void*)slot);
return OK;
}
+
+#endif /* defined (CONFIG_MMCSD) && defined (CONFIG_MMCSD_SPI) */