board-n800.c calls board_onenand_init() twice.  The second time fails 
during boot with:

   kobject (c031e048): tried to init an initialized object,
   something is seriously wrong.

with backtrace, etc.  board_onenand_init() should not be called twice.

Patch tested on N800.

Problem originally found by Kalle Valo <[email protected]>

Signed-off-by: Paul Walmsley <[email protected]>
Cc: Kalle Valo <[email protected]>
---
 arch/arm/mach-omap2/board-n800.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-n800.c b/arch/arm/mach-omap2/board-n800.c
index fee6c62..bea182d 100644
--- a/arch/arm/mach-omap2/board-n800.c
+++ b/arch/arm/mach-omap2/board-n800.c
@@ -566,7 +566,6 @@ static void __init nokia_n800_init(void)
 
        n800_ts_set_config();
        tea5761_dev_init();
-       board_onenand_init();
 }
 
 void __init nokia_n800_map_io(void)
-- 
1.6.3.3.334.g916e1

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to