toradex: fix USB Download gadget fixup callback
authorStefan Agner <stefan.agner@toradex.com>
Wed, 30 Nov 2016 21:41:52 +0000 (13:41 -0800)
committerStefano Babic <sbabic@denx.de>
Fri, 16 Dec 2016 08:56:38 +0000 (09:56 +0100)
Use the proper config option to guard the USB Download Function
fixup callback.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
board/toradex/common/tdx-common.c

index f1ab7946773ff5a2bae012a01a854136ab283a8b..d4180551b9ca9c52a803ad65d7ba93d0eba947d3 100644 (file)
@@ -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)