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 <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/291854
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
Vadim Bendebury
2015-08-07 15:29:06 -07:00
committed by ChromeOS Commit Bot
parent 9968fb3966
commit bdc1f4c1dc

View File

@@ -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."),