From: Robert P. J. Day Date: Sat, 27 Feb 2010 17:02:51 +0000 (-0500) Subject: MIPS: Initialize an atomic_t properly with ATOMIC_INIT(0). X-Git-Tag: v2.6.34-rc4~6^2~27 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=52553664033078102f5f430c861ccd0863b1b708;p=~emulex%2Finfiniband.git MIPS: Initialize an atomic_t properly with ATOMIC_INIT(0). Signed-off-by: Robert P. J. Day To: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/1008/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 25e825aea32..a95dea5459c 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c @@ -182,7 +182,7 @@ static int vpemask[2][8] = { {0, 0, 0, 0, 0, 0, 0, 1} }; int tcnoprog[NR_CPUS]; -static atomic_t idle_hook_initialized = {0}; +static atomic_t idle_hook_initialized = ATOMIC_INIT(0); static int clock_hang_reported[NR_CPUS]; #endif /* CONFIG_SMTC_IDLE_HOOK_DEBUG */