ahci: mediatek: add ahci driver
[platform/kernel/u-boot.git] / net / fastboot.c
index a9f7c07..0c57fb9 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <command.h>
 #include <fastboot.h>
 #include <net.h>
 #include <net/fastboot.h>
@@ -309,7 +310,9 @@ void fastboot_start_server(void)
 
        fastboot_our_port = WELL_KNOWN_PORT;
 
+#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
        fastboot_set_progress_callback(fastboot_timed_send_info);
+#endif
        net_set_udp_handler(fastboot_handler);
 
        /* zero out server ether in case the server ip has changed */