board: atmel: Fix compiler warning 'board_usb_hw_init()' not used
authorJosef Lusticky <josef@lusticky.cz>
Fri, 17 Apr 2020 07:32:25 +0000 (09:32 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Wed, 6 May 2020 13:18:53 +0000 (16:18 +0300)
commitef5a7438ac72798e82b9f8684bad935bcdd465e6
tree018333f32f9711b162c38058ca6c2fe995d6436d
parentdd2c676a659a03daeef31d1221da2edff009d426
board: atmel: Fix compiler warning 'board_usb_hw_init()' not used

Wrap definition of board_usb_hw_init() around with #ifdef CONFIG_CMD_USB
to avoid warning: 'board_usb_hw_init' defined but not used
[-Wunused-function] when compiling without CONFIG_CMD_USB.

This patch makes sama5d27_som1_ek, sama5d2_ptc_ek and sama5d2_xplained
consistent with other boards that use the same #ifdef to avoid the warning.

Cc: Eugen Hristev <eugen.hristev@microchip.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Josef Lusticky <josef@lusticky.cz>
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c
board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
board/atmel/sama5d2_xplained/sama5d2_xplained.c