[U-Boot-Users] [PATCH 2/2] Remove prototypes of nand_init() in favor of including nand.h.
Jens Gehrlein
sew_s at tqs.de
Tue Jul 1 16:43:14 CEST 2008
Hi Scott,
Scott Wood schrieb:
> Signed-off-by: Scott Wood <scottwood at freescale.com>
> ---
> lib_arm/board.c | 10 ++--------
> lib_ppc/board.c | 4 +---
> lib_sh/board.c | 2 +-
> 3 files changed, 4 insertions(+), 12 deletions(-)
>
> diff --git a/lib_arm/board.c b/lib_arm/board.c
> index 67506b3..5e04553 100644
> --- a/lib_arm/board.c
> +++ b/lib_arm/board.c
> @@ -45,6 +45,8 @@
> #include <version.h>
> #include <net.h>
> #include <serial.h>
> +#include <nand.h>
Today, I updated my local git tree to the current U-Boot. Running my
board I saw the message "RAM Configuration:", which didn't appear before.
I think the reason is the following:
nand.h includes linux/mtd/mtd.h, which defines a macro
#define DEBUG(n, args...) do { } while(0).
This causes #ifdef DEBUG in line 198 of board.c to become true.
Could you please fix this?
Thank you very much.
Best Regards,
Jens
More information about the U-Boot
mailing list