From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugen.Hristev at microchip.com Date: Wed, 6 May 2020 13:20:45 +0000 Subject: [PATCH] board: atmel: Fix compiler warning 'board_usb_hw_init()' not used In-Reply-To: <20200417073225.30458-1-josef@lusticky.cz> References: <20200417073225.30458-1-josef@lusticky.cz> Message-ID: <8f0e4e30-b02b-a7ff-4b59-7ec15965b9ca@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17.04.2020 10:32, Josef Lusticky wrote: > 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 > Cc: Ludovic Desroches > Signed-off-by: Josef Lusticky > --- Reviewed-by: Eugen Hristev Applied to u-boot-atmel/master Thanks !