arm: tegra: fix debug build issue
Bibek Basu [Mon, 20 Jul 2015 08:56:31 +0000 (13:56 +0530)]
Initialize uninitialized variables to get the
build through

Bug 1640594

Change-Id: Ia0788c5852bb8d68a79004e3f2fa1b3d2b9ca2fe
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/772239
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/mach-tegra/board-panel.c
drivers/gpu/nvgpu/gk20a/pmu_gk20a.c

index f44b778..c8e6924 100644 (file)
@@ -100,7 +100,7 @@ int tegra_panel_gpio_get_dt(const char *comp_str,
                                struct tegra_panel_of *panel)
 {
        int cnt = 0;
-       char *label;
+       char *label = NULL;
        const char *node_status;
        int err = 0;
        struct device_node *node =
index 13da5e8..4899319 100644 (file)
@@ -2550,7 +2550,7 @@ static int pmu_handle_perfmon_event(struct pmu_gk20a *pmu,
 
 static int pmu_handle_event(struct pmu_gk20a *pmu, struct pmu_msg *msg)
 {
-       int err;
+       int err = 0;
 
        gk20a_dbg_fn("");