diff options
author | Sanjay Singh Rawat <srawat@nvidia.com> | 2012-06-07 13:41:33 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:00:18 -0700 |
commit | c7a728cde706e61892822e0de5b3de26db0f4edb (patch) | |
tree | 79c472bf75229dd0b78fe0730e99949df13f8540 /arch/arm/mach-tegra/common-t2.c | |
parent | 5b4eb125e9c8ba1d8c75bb63bc29d984af42ce80 (diff) |
arm: tegra: resolve compilation time warnings
Warnings removed are related to unused variables/labels,
structure/argument type mismatch, copyright update, function return
type mismatch and wrong C coding style.
Bug 949219
Change-Id: Ib748d12d5ab3cfc35118be28c29983081cca6cbb
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/103770
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Conflicts:
arch/arm/mach-tegra/board-harmony-pcie.c
arch/arm/mach-tegra/common-t2.c
arch/arm/mach-tegra/tegra2_mc.c
Rebase-Id: R02fbf32fe91749e439a92c71aafa0d4db4a93958
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 2a19e8858f3f..21088fbaaec2 100644 --- a/arch/arm/mach-tegra/common-t2.c +++ b/arch/arm/mach-tegra/common-t2.c @@ -3,7 +3,7 @@ * * Tegra 2 SoC-specific initialization (memory controller, etc.) * - * Copyright (c) 2009-2011, NVIDIA Corporation. + * Copyright (c) 2009-2012 NVIDIA Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -182,6 +182,7 @@ static int __init tegra20_mc_init(void) if (request_irq(INT_MC_GENERAL, tegra_mc_error_isr, 0, "mc_status", NULL)) { pr_err("%s: unable to register MC error interrupt\n", __func__); + return -EINVAL; } else { void __iomem *mc = IO_ADDRESS(TEGRA_MC_BASE); u32 reg = MC_INT_SECURITY_VIOLATION | MC_INT_INVALID_GART_PAGE | |