diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-12-01 00:41:52 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-12-16 11:56:38 +0300 |
commit | beaf40688ba7303e9db50558b3852c79437eecad (patch) | |
tree | ebedc53c3d1f5b1a0394aca70c8b9e09b0fc68ca /board/toradex/common | |
parent | f2465934b46235287e07473fa4919035ba1a2b68 (diff) | |
download | u-boot-beaf40688ba7303e9db50558b3852c79437eecad.tar.xz |
toradex: fix USB Download gadget fixup callback
Use the proper config option to guard the USB Download Function
fixup callback.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'board/toradex/common')
-rw-r--r-- | board/toradex/common/tdx-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/toradex/common/tdx-common.c b/board/toradex/common/tdx-common.c index f1ab794677..d4180551b9 100644 --- a/board/toradex/common/tdx-common.c +++ b/board/toradex/common/tdx-common.c @@ -108,7 +108,7 @@ int show_board_info(void) return 0; } -#ifdef CONFIG_USBDOWNLOAD_GADGET +#ifdef CONFIG_USB_GADGET_DOWNLOAD int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name) { unsigned short usb_pid; @@ -118,7 +118,7 @@ int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name) return 0; } -#endif /* CONFIG_USBDOWNLOAD_GADGET */ +#endif #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) int ft_board_setup(void *blob, bd_t *bd) |