diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-10-07 08:02:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-10-07 08:02:14 +0200 |
commit | ebf9022f2eee564fc4b0e4b37a8267319923d808 (patch) | |
tree | 407715e96a34f57b194198c24099cd7b627ae714 /common/startup.c | |
parent | a293dc2753433f8052f9471b2d0cc19f01c50739 (diff) | |
parent | 7359e2852249758f6fb12dae9a0d57a197b7a769 (diff) | |
download | barebox-ebf9022f2eee564fc4b0e4b37a8267319923d808.tar.gz barebox-ebf9022f2eee564fc4b0e4b37a8267319923d808.tar.xz |
Merge branch 'for-next/rs485'
Conflicts:
common/console_common.c
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/startup.c b/common/startup.c index 0a36c07aae..2e0a4ba3dc 100644 --- a/common/startup.c +++ b/common/startup.c @@ -161,6 +161,8 @@ void __noreturn hang (void) for (;;); } +void (*board_shutdown)(void); + /* Everything needed to cleanly shutdown barebox. * Should be called before starting an OS to get * the devices into a clean state @@ -171,4 +173,6 @@ void shutdown_barebox(void) #ifdef ARCH_SHUTDOWN arch_shutdown(); #endif + if (board_shutdown) + board_shutdown(); } |