Fix Error: board/cxd56_leds.c:43:20: error: unused function 'led_clrbits' [-Werror,-Wunused-function]
static inline void led_clrbits(unsigned int clrbits)
^
Error: board/cxd56_leds.c:66:20: error: unused function 'led_setbits' [-Werror,-Wunused-function]
static inline void led_setbits(unsigned int setbits)
* Private Functions
****************************************************************************/
+#ifndef CONFIG_ARCH_LEDS_CPU_ACTIVITY
static inline void led_clrbits(unsigned int clrbits)
{
if ((clrbits & BOARD_LED1_BIT) != 0)
@@ -85,6 +86,7 @@ static inline void led_setbits(unsigned int setbits)
cxd56_gpio_write(GPIO_LED4, true);
}
}
+#endif
/****************************************************************************
* Public Functions
