carl9170: link time optimization build
[carl9170fw.git] / carlfw / src / main.c
index a4d24b60b69bf56bb3851d17fd2a2414bcaef4d4..80e7e21ee45cee6d807fd7813333db4b35d92df3 100644 (file)
@@ -54,10 +54,10 @@ void clock_set(enum cpu_clock_t clock_, bool on)
         * So watch out, if you need _stable_ timer interrupts.
         */
 #ifdef CONFIG_CARL9170FW_RADIO_FUNCTIONS
-        if (fw.phy.frequency < 3000000)
+       if (fw.phy.frequency < 3000000)
                set(AR9170_PWR_REG_PLL_ADDAC, 0x5163);
-        else
-                set(AR9170_PWR_REG_PLL_ADDAC, 0x5143);
+       else
+               set(AR9170_PWR_REG_PLL_ADDAC, 0x5143);
 #else
        set(AR9170_PWR_REG_PLL_ADDAC, 0x5163);
 #endif /* CONFIG_CARL9170FW_RADIO_FUNCTIONS */
@@ -217,7 +217,7 @@ static void __noreturn main_loop(void)
  * we put _start() there with the linker script carl9170.lds.
  */
 
-void __section(boot) start(void)
+void __section(boot) __noreturn __visible start(void)
 {
        clock_set(AHB_40MHZ_OSC, true);