configs/stm32f769i-disco/src/stm32_bringup.c: Fix more errors found in build testing.

This commit is contained in:
Gregory Nutt
2019-07-28 16:52:27 -06:00
parent 970295d0fe
commit a54d660842
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -2967,6 +2967,7 @@ static int stm32_registercallback(FAR struct sdio_dev_s *dev,
static int stm32_dmapreflight(FAR struct sdio_dev_s *dev, static int stm32_dmapreflight(FAR struct sdio_dev_s *dev,
FAR const uint8_t *buffer, size_t buflen) FAR const uint8_t *buffer, size_t buflen)
{ {
#ifdef CONFIG_STM32F7_DMACAPABLE
struct stm32_dev_s *priv = (struct stm32_dev_s *)dev; struct stm32_dev_s *priv = (struct stm32_dev_s *)dev;
DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0); DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0);
@@ -2978,6 +2979,7 @@ static int stm32_dmapreflight(FAR struct sdio_dev_s *dev,
{ {
return -EFAULT; return -EFAULT;
} }
#endif
return 0; return 0;
} }
+4 -3
View File
@@ -70,6 +70,7 @@ int stm32_bringup(void)
{ {
int ret = OK; int ret = OK;
#ifdef CONFIG_FS_PROCFS
#ifdef CONFIG_STM32_CCM_PROCFS #ifdef CONFIG_STM32_CCM_PROCFS
/* Register the CCM procfs entry. This must be done before the procfs is /* Register the CCM procfs entry. This must be done before the procfs is
* mounted. * mounted.
@@ -80,11 +81,11 @@ int stm32_bringup(void)
/* Mount the procfs file system */ /* Mount the procfs file system */
ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL); ret = mount(NULL, STM32_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n", syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n",
SAMV71_PROCFS_MOUNTPOINT, ret); STM32_PROCFS_MOUNTPOINT, ret);
} }
#endif #endif