Skip to content

Commit

Permalink
ARM: tegra: init fuse before setting reset handler
Browse files Browse the repository at this point in the history
CPU reset handler was set before fuse is initialized, but
tegra_cpu_reset_handler_enable() uses tegra_chip_id, which is set by
tegra_init_fuse(). This patch reorders the calls so the CPU reset
handler code does not read an uninitialized variable.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Alexandre Courbot authored and Olof Johansson committed Nov 14, 2013
1 parent 4fde38b commit cd198d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-tegra/tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ static void __init tegra_init_cache(void)

static void __init tegra_init_early(void)
{
tegra_cpu_reset_handler_init();
tegra_apb_io_init();
tegra_init_fuse();
tegra_cpu_reset_handler_init();
tegra_init_cache();
tegra_powergate_init();
tegra_hotplug_init();
Expand Down

0 comments on commit cd198d6

Please sign in to comment.