diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-12 09:21:55 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-12 09:21:55 -0600 |
commit | 147415a647658c5d472338d745c5b68942eb0b2c (patch) | |
tree | 9a94ea4d00f35742480ecac85db9ef399bf3be0c /nuttx/drivers/mtd/sst39vf.c | |
parent | 2977ad09c854e056b26f4ae1d86e751a7acead60 (diff) | |
download | px4-nuttx-147415a647658c5d472338d745c5b68942eb0b2c.tar.gz px4-nuttx-147415a647658c5d472338d745c5b68942eb0b2c.tar.bz2 px4-nuttx-147415a647658c5d472338d745c5b68942eb0b2c.zip |
procfs/: Extenstive architectural changes and enhancements by Ken Pettit
Diffstat (limited to 'nuttx/drivers/mtd/sst39vf.c')
-rw-r--r-- | nuttx/drivers/mtd/sst39vf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/drivers/mtd/sst39vf.c b/nuttx/drivers/mtd/sst39vf.c index 0f7f49cf6..d42550574 100644 --- a/nuttx/drivers/mtd/sst39vf.c +++ b/nuttx/drivers/mtd/sst39vf.c @@ -844,6 +844,12 @@ FAR struct mtd_dev_s *sst39vf_initialize(void) return NULL; } + /* Register the MTD with the procfs system if enabled */ + +#ifdef CONFIG_MTD_REGISTRATION + mtd_register(&priv->mtd, "sst39vf"); +#endif + /* Return the state structure as the MTD device */ return (FAR struct mtd_dev_s *)&g_sst39vf; |