summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/common.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-12-13 20:43:38 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2013-12-15 20:58:45 -0800
commite4d50dbbb2c488ebddf236471c21dd2f79b1a240 (patch)
treee549e398750ef83e61e91ec7289c50f2e4bfb615 /arch/arm/mach-tegra/common.c
parent0c723058fe6f1f180f84d95fc5193e79c89cd0f5 (diff)
ARM: tegra: fix the return type of function used for initcall
Fix the return type of function used for late_initcall which fixes following warning: /* mach-tegra/common.c:2566:1: warning: initialization from incompatible pointer type [enabled by default] */ Change-Id: I5a0e627f511d8ffe80990dc4005b363f6eb50bfd Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/345372 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r--arch/arm/mach-tegra/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index e8c3f88b2e58..b8be8156bce1 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -2562,7 +2562,7 @@ void __init display_tegra_dt_info(void)
pr_info("DTS File Name: <unknown>\n");
}
-void __init tegra_get_last_reset_reason(void)
+static int __init tegra_get_last_reset_reason(void)
{
#define PMC_RST_STATUS 0x1b4
#define RESET_STR(REASON) "last reset is due to "#REASON"\n"
@@ -2579,5 +2579,6 @@ void __init tegra_get_last_reset_reason(void)
pr_info("last reset value is invalid 0x%x\n", val);
else
pr_info("%s\n", reset_reason[val]);
+ return 0;
}
late_initcall(tegra_get_last_reset_reason);