Преглед на файлове

Fix data stage name matching issue

This fix allows the name of the stage to be specifed after the
controler and DIMM is specified.  Prior to this fix, if the
data stage name is not the first entry on the command line,
the operation is applied to all controller and DIMMs.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
James Yang преди 12 години
родител
ревизия
992f2fb28c
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      arch/powerpc/cpu/mpc8xxx/ddr/interactive.c

+ 2 - 1
arch/powerpc/cpu/mpc8xxx/ddr/interactive.c

@@ -1390,9 +1390,10 @@ static unsigned int fsl_ddr_parse_interactive_cmd(
 
 
 	unsigned int i, j;
 	unsigned int i, j;
 	unsigned int error = 0;
 	unsigned int error = 0;
-	unsigned int matched = 0;
 
 
 	for (i = 1; i < argc; i++) {
 	for (i = 1; i < argc; i++) {
+		unsigned int matched = 0;
+
 		for (j = 0; j < n_opts; j++) {
 		for (j = 0; j < n_opts; j++) {
 			if (strcmp(options[j].data_name, argv[i]) != 0)
 			if (strcmp(options[j].data_name, argv[i]) != 0)
 				continue;
 				continue;