common: Drop linux/delay.h from common header
[oweals/u-boot.git] / board / work-microwave / work_92105 / work_92105.c
index f782284d60b4f9b3fdc7a281790a805f6da9f867..2e0def5b64f0f4d7b8075e4517d3ce4878d178e8 100644 (file)
@@ -1,13 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * WORK Microwave work_92105 board support
  *
  * (C) Copyright 2014  DENX Software Engineering GmbH
  * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
+#include <init.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/cpu.h>
@@ -16,6 +16,7 @@
 #include <asm/arch/wdt.h>
 #include <asm/gpio.h>
 #include <spl.h>
+#include <linux/delay.h>
 #include "work_92105_display.h"
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -53,8 +54,10 @@ int board_early_init_r(void)
        gpio_request(GPO_19, "NAND_nWP");
        gpio_direction_output(GPO_19, 1);
 
+#ifdef CONFIG_DEPRECATED
        /* initialize display */
        work_92105_display_init();
+#endif
 
        return 0;
 }