board: toradex: make USB PID from config block optional
[platform/kernel/u-boot.git] / board / toradex / common / tdx-common.c
index a3d287e..061abf7 100644 (file)
@@ -147,7 +147,7 @@ int show_board_info(void)
        return 0;
 }
 
-#ifdef CONFIG_USB_GADGET_DOWNLOAD
+#ifdef CONFIG_TDX_CFG_BLOCK_USB_GADGET_PID
 int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
 {
        unsigned short usb_pid;