arm: tegra: emc: Fix compiler warning
Juha Tukkinen [Mon, 18 Jun 2012 11:29:01 +0000 (14:29 +0300)]
Initialize a variable to avoid a compiler warning and a potential bug.

Bug 999222

Change-Id: I77724b21d20049340943856c8d00af5e067c206a
Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-on: http://git-master/r/109552
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Stefan Becker <stefanb@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

arch/arm/mach-tegra/tegra2_mc.c

index 1b72af0..f25a179 100644 (file)
@@ -281,7 +281,8 @@ static int tegra_mc_client_parse(const char *buf, size_t count,
        };
        int ret = 0, i, token, index = 0;
        bool aggregate = false;
-       int period, *client_ids, mode;
+       int period, *client_ids;
+       int mode = FILTER_NONE;
        u64 address_low = 0;
        u64 address_length = 1ull << 32;