boards/arm/samv7: fix build error when automount is enabled
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
086fb829fd
commit
4d5aace138
@ -97,7 +97,7 @@ static const struct sam_automount_config_s g_hsmci0config =
|
||||
.enable = sam_enable,
|
||||
.inserted = sam_inserted
|
||||
},
|
||||
.hsmci = HSMCI0_SLOTNO,
|
||||
.hsmci = 0,
|
||||
.state = &g_hsmci0state
|
||||
};
|
||||
#endif
|
||||
@ -250,7 +250,7 @@ void sam_automount_initialize(void)
|
||||
/* Initialize the HSMCI0 auto-mounter */
|
||||
|
||||
handle = automount_initialize(&g_hsmci0config.lower);
|
||||
if (!handle)
|
||||
if (handle == NULL)
|
||||
{
|
||||
ferr("ERROR: Failed to initialize auto-mounter for HSMCI0\n");
|
||||
}
|
||||
@ -291,7 +291,7 @@ void sam_automount_event(int slotno, bool inserted)
|
||||
#ifdef CONFIG_SAMV7_HSMCI0_AUTOMOUNT
|
||||
/* Is this a change in the HSMCI0 insertion state? */
|
||||
|
||||
if (slotno == HSMCI0_SLOTNO)
|
||||
if (g_hsmci0config.hsmci == slotno)
|
||||
{
|
||||
/* Yes.. Select the HSMCI0 automounter */
|
||||
|
||||
|
@ -107,15 +107,15 @@ int sam_bringup(void)
|
||||
|
||||
/* Mount the volume on HSMCI0 */
|
||||
|
||||
ret = nx_mount(CONFIG_SAME70QMTECH_HSMCI0_MOUNT_BLKDEV,
|
||||
CONFIG_SAME70QMTECH_HSMCI0_MOUNT_MOUNTPOINT,
|
||||
CONFIG_SAME70QMTECH_HSMCI0_MOUNT_FSTYPE,
|
||||
ret = nx_mount(CONFIG_SAMV7_HSMCI0_MOUNT_BLKDEV,
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_MOUNTPOINT,
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_FSTYPE,
|
||||
0, NULL);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount %s: %d\n",
|
||||
CONFIG_SAME70QMTECH_HSMCI0_MOUNT_MOUNTPOINT, ret);
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_MOUNTPOINT, ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -198,15 +198,15 @@ int sam_bringup(void)
|
||||
|
||||
/* Mount the volume on HSMCI0 */
|
||||
|
||||
ret = nx_mount(CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_BLKDEV,
|
||||
CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_MOUNTPOINT,
|
||||
CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_FSTYPE,
|
||||
ret = nx_mount(CONFIG_SAMV7_HSMCI0_MOUNT_BLKDEV,
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_MOUNTPOINT,
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_FSTYPE,
|
||||
0, NULL);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount %s: %d\n",
|
||||
CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_MOUNTPOINT, ret);
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_MOUNTPOINT, ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -315,15 +315,15 @@ int sam_bringup(void)
|
||||
|
||||
/* Mount the volume on HSMCI0 */
|
||||
|
||||
ret = nx_mount(CONFIG_SAMV71XULT_HSMCI0_MOUNT_BLKDEV,
|
||||
CONFIG_SAMV71XULT_HSMCI0_MOUNT_MOUNTPOINT,
|
||||
CONFIG_SAMV71XULT_HSMCI0_MOUNT_FSTYPE,
|
||||
ret = nx_mount(CONFIG_SAMV7_HSMCI0_MOUNT_BLKDEV,
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_MOUNTPOINT,
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_FSTYPE,
|
||||
0, NULL);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount %s: %d\n",
|
||||
CONFIG_SAMV71XULT_HSMCI0_MOUNT_MOUNTPOINT, ret);
|
||||
CONFIG_SAMV7_HSMCI0_MOUNT_MOUNTPOINT, ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user