From bdc1f4c1dc9e736280014ac5b7433c627ccc91fa Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Fri, 7 Aug 2015 15:29:06 -0700 Subject: [PATCH] cr50: control adding USB specific code using proper config CONFIG_USB is a better indicator that USB related code needs to be included. BRANCH=none BUG=none TEST=none - this patch helped compartmentnalize the code when debugging bringup on a new platform. Change-Id: I12ef77325591853d73e2e09f7c491954e272bde9 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/291854 Reviewed-by: Bill Richardson --- board/cr50/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/cr50/board.c b/board/cr50/board.c index f64a75b374..c6970c29c0 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -80,7 +80,7 @@ static void board_init(void) } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); -#if !defined(CHIP_VARIANT_CR50_A1) +#if defined(CONFIG_USB) const void * const usb_strings[] = { [USB_STR_DESC] = usb_string_desc, [USB_STR_VENDOR] = USB_STRING_DESC("Google Inc."),