tegra2: Don't use board pointer before it is set up
authorSimon Glass <sjg@chromium.org>
Sat, 5 Nov 2011 03:56:57 +0000 (03:56 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 9 Dec 2011 16:30:09 +0000 (17:30 +0100)
commit7f8c070ff99aadf153cd90cd0ec1987e8c2ebbe1
tree86fa147b274f3957f94e0db04e8c48f7e9313c73
parente81cdc03505737914dfcf99b9f47292e7174c7bf
tegra2: Don't use board pointer before it is set up

In board_init_f() the gd->bd pointer is not valid when dram_init() is called.
This only avoids dying because DRAM is at zero on Tegra2. The common ARM
routine sets up the banks in the same way anyway, so we can just remove this
code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/cpu/armv7/tegra2/board.c