diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2007-11-28 09:03:27 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-28 09:03:27 +0100 |
commit | 7067e21f3f6f4744ccfb77868a0ae2da9cbf3fbc (patch) | |
tree | be331a2c17eb571a929335ab377f04594b0456fe /include/boot.h | |
parent | 4ee1303b438b1ada73310aedcd09a17e06a8877d (diff) | |
download | barebox-7067e21f3f6f4744ccfb77868a0ae2da9cbf3fbc.tar.gz barebox-7067e21f3f6f4744ccfb77868a0ae2da9cbf3fbc.tar.xz |
cleanup do_bootm_linux()
This patch cleans up the do_bootm_linux() function. It removes most of
the uggly ifdefery and replaces it by a sane function optimizing
structure.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'include/boot.h')
-rw-r--r-- | include/boot.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/boot.h b/include/boot.h index 889773bc2c..6fc7b05b60 100644 --- a/include/boot.h +++ b/include/boot.h @@ -1,11 +1,13 @@ #ifndef __BOOT_H #define __BOOT_H +#include <image.h> + #ifdef CONFIG_OF_FLAT_TREE -int do_bootm_linux(struct image_handle *os, struct image_handle *initrd, +extern int do_bootm_linux(struct image_handle *os, struct image_handle *initrd, const char *oftree); #else -int do_bootm_linux(struct image_handle *os, struct image_handle *initrd); +extern int do_bootm_linux(struct image_handle *os, struct image_handle *initrd); #endif #endif /* __BOOT_H */ |