nehalem/raminit: Fix typo of NUM_CHANNELS instead of NUM_SLOTS.

Change-Id: I0fbfa8cb39881782bec3af5e43ff3c63dd2e4919
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/5276
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
diff --git a/src/northbridge/intel/nehalem/raminit.c b/src/northbridge/intel/nehalem/raminit.c
index a855982..24c64ee 100644
--- a/src/northbridge/intel/nehalem/raminit.c
+++ b/src/northbridge/intel/nehalem/raminit.c
@@ -3925,7 +3925,7 @@
 
 		info.use_ecc = 1;
 		for (channel = 0; channel < NUM_CHANNELS; channel++)
-			for (slot = 0; slot < NUM_CHANNELS; slot++) {
+			for (slot = 0; slot < NUM_SLOTS; slot++) {
 				int v;
 				int try;
 				int addr;