[rtems commit] arm/altera-cyclone-v: Fix compile error
Sebastian Huber
sebh at rtems.org
Mon May 17 06:05:42 UTC 2021
Module: rtems
Branch: master
Commit: 98cb84ea2fd5a65d3f98363a9ecaed012fbc2231
Changeset: http://git.rtems.org/rtems/commit/?id=98cb84ea2fd5a65d3f98363a9ecaed012fbc2231
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon May 17 08:04:07 2021 +0200
arm/altera-cyclone-v: Fix compile error
Update #4406.
---
bsps/arm/altera-cyclone-v/rtc/rtc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsps/arm/altera-cyclone-v/rtc/rtc.c b/bsps/arm/altera-cyclone-v/rtc/rtc.c
index 2ff9791..779a093 100644
--- a/bsps/arm/altera-cyclone-v/rtc/rtc.c
+++ b/bsps/arm/altera-cyclone-v/rtc/rtc.c
@@ -353,7 +353,7 @@ static int altera_cyclone_v_ds1339_get_time(int minor, rtems_time_of_day* tod)
temp_tod.month = ds1339_get_month(&time);
temp_tod.year = ds1339_get_year(&time);
- sc = _TOD_Validate(&temp_tod, TOD_ENABLE_TICKS_VALIDATION)
+ sc = _TOD_Validate(&temp_tod, TOD_ENABLE_TICKS_VALIDATION);
if (sc == RTEMS_SUCCESSFUL)
memcpy(tod, &temp_tod, sizeof(temp_tod));
}
@@ -736,7 +736,7 @@ static int altera_cyclone_v_m41st87_get_time(int minor, rtems_time_of_day* tod)
temp_tod.month = m41st87_get_month(&time);
temp_tod.year = m41st87_get_year(&time);
- sc = _TOD_Validate(&temp_tod);
+ sc = _TOD_Validate(&temp_tod, TOD_ENABLE_TICKS_VALIDATION);
if (sc == RTEMS_SUCCESSFUL)
memcpy(tod, &temp_tod, sizeof(temp_tod));
More information about the vc
mailing list