common: Move hang() to the same header as panic()
[oweals/u-boot.git] / arch / arm / mach-omap2 / clocks-common.c
index 93c4c6fe33e71fe0db9b6811b38a52ab54a6c44b..9aff83e9dfdb86b2ee1ee1e64a322e3fad9aff59 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  *
  * Clock initialization for OMAP4
  * Based on previous work by:
  *     Santosh Shilimkar <santosh.shilimkar@ti.com>
  *     Rajendra Nayak <rnayak@ti.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
+#include <hang.h>
 #include <i2c.h>
 #include <asm/omap_common.h>
 #include <asm/gpio.h>
@@ -910,6 +910,7 @@ void prcm_init(void)
                enable_basic_uboot_clocks();
 }
 
+#if !defined(CONFIG_DM_I2C)
 void gpi2c_init(void)
 {
        static int gpi2c = 1;
@@ -920,3 +921,4 @@ void gpi2c_init(void)
                gpi2c = 0;
        }
 }
+#endif