summaryrefslogtreecommitdiff
path: root/nuttx/drivers
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-01 09:21:13 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-01 09:21:13 -0600
commit1a5060c28be4edffb32eabc2ad422254fcd72bb2 (patch)
tree9bf1a6e1ae07bb2e94af5a32604ff1b8463b0ac3 /nuttx/drivers
parentd9bd2fca774a5c3499f7b3a258aa1506fdea526f (diff)
downloadpx4-nuttx-1a5060c28be4edffb32eabc2ad422254fcd72bb2.tar.gz
px4-nuttx-1a5060c28be4edffb32eabc2ad422254fcd72bb2.tar.bz2
px4-nuttx-1a5060c28be4edffb32eabc2ad422254fcd72bb2.zip
Misc changes for clean built od mikroe-stm32f4 configurations
Diffstat (limited to 'nuttx/drivers')
-rw-r--r--nuttx/drivers/mtd/smart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/drivers/mtd/smart.c b/nuttx/drivers/mtd/smart.c
index c20656565..9de557b5f 100644
--- a/nuttx/drivers/mtd/smart.c
+++ b/nuttx/drivers/mtd/smart.c
@@ -2084,8 +2084,10 @@ int smart_initialize(int minor, FAR struct mtd_dev_s *mtd)
/* Set these to zero in case the device doesn't support them */
+#ifdef CONFIG_MTD_SUBSECTOR_ERASE
dev->geo.subsectorsize= 0;
dev->geo.nsubsectors = 0;
+#endif
ret = MTD_IOCTL(mtd, MTDIOC_GEOMETRY, (unsigned long)((uintptr_t)&dev->geo));
if (ret < 0)
{