]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
watchdog.h: Move hw_watchdog_init prototype to end, guard
authorTom Rini <trini@ti.com>
Mon, 14 Jan 2013 20:10:07 +0000 (13:10 -0700)
committerTom Rini <trini@ti.com>
Mon, 14 Jan 2013 20:10:07 +0000 (13:10 -0700)
In commit abbab70 we added a prototype for hw_watchdog_init, in a
Freescale i.MX watchdog driver.  We did not however guard it with an
__ASSEMBLY__ check and broke some platforms.  Move this to the end of
the file with other prototypes and guard it.

Signed-off-by: Tom Rini <trini@ti.com>
include/watchdog.h

index 328a30b9aae8e22307f03dc93dd8c57bfa3da98a..8c92a0b31beaa2fe52210d7a2dbf2ed22cb28168 100644 (file)
@@ -35,7 +35,6 @@
  * Hardware watchdog
  */
 #ifdef CONFIG_HW_WATCHDOG
-       void hw_watchdog_init(void);
        #if defined(__ASSEMBLY__)
                #define WATCHDOG_RESET bl hw_watchdog_reset
        #else
@@ -91,4 +90,8 @@
        void reset_4xx_watchdog(void);
 #endif
 
+/* Freescale i.MX */
+#if defined(CONFIG_IMX_WATCHDOG) && !defined(__ASSEMBLY__)
+       void hw_watchdog_init(void);
+#endif
 #endif /* _WATCHDOG_H_ */