diff --git a/ChangeLog b/ChangeLog index 2122fa0194..29e8c77922 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7179,7 +7179,11 @@ Duckworth (2014-4-16). * arch/arm/src/stm32/chip/stm32f20xxx_pinmap.h: Correct a mapping for SPI MOSI pin. From dlsitzer (2014-4-26). - * arm/src/sama5/sam_clockconfig.c/.h: Move the un-definitions of - __ramfuncs__ from the .c file to the .h file or, otherwise, the - attribute will be applied differently for the prototype and the - function definition. Sourceforge patch 38 from Luciano Neri (2014-4-17). + * arm/src/sama5/sam_clockconfig.c and common/up_internal.h: Move the + un-definitions of __ramfuncs__ from the .c file to the .h file or, + otherwise, the attribute will be applied differently for the prototype + and the function definition. Sourceforge patch 38 from Luciano Neri + (2014-4-17). + * arch/arm/src/sama5/sam_emac.c: Add missing right parentheses. This + introduced in the above change and is Sourceforge patch 39 from Luciano + Neri (2014-4-17). diff --git a/arch/arm/src/sama5/sam_emac.c b/arch/arm/src/sama5/sam_emac.c index 2f2603cb52..b20446ec7e 100644 --- a/arch/arm/src/sama5/sam_emac.c +++ b/arch/arm/src/sama5/sam_emac.c @@ -2484,15 +2484,15 @@ static int sam_phyinit(struct sam_emac_s *priv) ndbg("ERROR: Cannot realize PHY clock\n"); return -EINVAL; } - else if (mck > (80*1000*1000) + else if (mck > (80*1000*1000)) { regval |= EMAC_NCFGR_CLK_DIV64; /* MCK divided by 64 (MCK up to 160 MHz) */ } - else if (mck > (40*1000*1000) + else if (mck > (40*1000*1000)) { regval |= EMAC_NCFGR_CLK_DIV32; /* MCK divided by 32 (MCK up to 80 MHz) */ } - else if (mck > (20*1000*1000) + else if (mck > (20*1000*1000)) { regval |= EMAC_NCFGR_CLK_DIV16; /* MCK divided by 16 (MCK up to 40 MHz) */ }