diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-06-13 17:51:06 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-22 23:26:38 -0700 |
commit | 0f8357891a4ca77b9f2c2fa4ca100f834789b802 (patch) | |
tree | 3d5b6f324ed5fd9cf50726b2937db76258a4f77b /arch/arm/mach-tegra/common-t2.c | |
parent | 309a393d6f0772e227b95c4fcfabbf1d001bf925 (diff) |
ARM: tegra: Move tegra_mc_init to arch_initcall
It's current spot, in tegra_early_init, was too early. It was being
called before we could allocate memory.
Rebase-Id: Rff026504107e75b33dccf714c5219d78c0d1dac9
Diffstat (limited to 'arch/arm/mach-tegra/common-t2.c')
-rw-r--r-- | arch/arm/mach-tegra/common-t2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/common-t2.c b/arch/arm/mach-tegra/common-t2.c index 8bc10fdbd3b9..4b805dcfecb9 100644 --- a/arch/arm/mach-tegra/common-t2.c +++ b/arch/arm/mach-tegra/common-t2.c @@ -177,7 +177,7 @@ out: return IRQ_HANDLED; } -void __init tegra20_mc_init(void) +static void __init tegra20_mc_init(void) { if (request_irq(INT_MC_GENERAL, tegra_mc_error_isr, 0, "mc_status", NULL)) { @@ -189,3 +189,4 @@ void __init tegra20_mc_init(void) writel(reg, mc + MC_INT_MASK); } } +arch_initcall(tegra_mc_init); |