console: uart: Ifdef an include

usb-device.h must be included only if CONFIG_USB_UART_CONSOLE is
defined, otherwise it is not used and will pull a lot of usb code.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2020-01-27 22:04:02 -08:00 committed by Anas Nashif
parent b7a3e7dc31
commit d507574864

View file

@ -33,7 +33,9 @@
#ifdef CONFIG_UART_CONSOLE_MCUMGR
#include "mgmt/serial.h"
#endif
#ifdef CONFIG_USB_UART_CONSOLE
#include <usb/usb_device.h>
#endif
static struct device *uart_console_dev;