diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2013-11-12 15:03:16 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-11-14 13:44:31 -0500 |
commit | cd198d6dc40fc32ee81432fa0df1a27c290b3436 (patch) | |
tree | e144eb0dd5a40865c7dd58e61b7b96165fe60619 /arch/arm/mach-tegra/tegra.c | |
parent | 4fde38bb5bedfc9a395c07282476b3a0bd468a20 (diff) |
ARM: tegra: init fuse before setting reset handler
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>
Diffstat (limited to 'arch/arm/mach-tegra/tegra.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index ce553d557c31..73368176c6e8 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c | |||
@@ -90,9 +90,9 @@ static void __init tegra_init_cache(void) | |||
90 | 90 | ||
91 | static void __init tegra_init_early(void) | 91 | static void __init tegra_init_early(void) |
92 | { | 92 | { |
93 | tegra_cpu_reset_handler_init(); | ||
94 | tegra_apb_io_init(); | 93 | tegra_apb_io_init(); |
95 | tegra_init_fuse(); | 94 | tegra_init_fuse(); |
95 | tegra_cpu_reset_handler_init(); | ||
96 | tegra_init_cache(); | 96 | tegra_init_cache(); |
97 | tegra_powergate_init(); | 97 | tegra_powergate_init(); |
98 | tegra_hotplug_init(); | 98 | tegra_hotplug_init(); |