]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: tegra: make tegra_cpu_reset_handler_enable() __init
authorStephen Warren <swarren@nvidia.com>
Mon, 18 Jun 2012 21:01:50 +0000 (15:01 -0600)
committerOlof Johansson <olof@lixom.net>
Mon, 18 Jun 2012 23:42:57 +0000 (16:42 -0700)
This solves a section mismatch warning. I hadn't noticed this before,
because my compiler was inlining tegra_cpu_reset_handler_enable() inside
tegra_cpu_reset_handler_init(), which is already __init, but I switched
compilers and it stopped doing that.

Cc: <stable@kernel.org> # v3.4
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/reset.c

index 4d6a2ee99c3b37df6a57e186cc0530da08e6ec98..5beb7ebe2948ff1e706159bf958e9118b3906f7e 100644 (file)
@@ -33,7 +33,7 @@
 
 static bool is_enabled;
 
-static void tegra_cpu_reset_handler_enable(void)
+static void __init tegra_cpu_reset_handler_enable(void)
 {
        void __iomem *iram_base = IO_ADDRESS(TEGRA_IRAM_RESET_BASE);
        void __iomem *evp_cpu_reset =