]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/lib_powerpc/rlwinm.c
sniper: Serial number support, obtained from die ID
[karo-tx-uboot.git] / post / lib_powerpc / rlwinm.c
index 88a28c6431faab479c41bfdd4b3da00a5043c92f..35a1a40fc9d68bec8868cd961349183ed90ef524 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -59,8 +43,7 @@ static struct cpu_post_rlwinm_s
        0x0000ff00
    },
 };
-static unsigned int cpu_post_rlwinm_size =
-    sizeof (cpu_post_rlwinm_table) / sizeof (struct cpu_post_rlwinm_s);
+static unsigned int cpu_post_rlwinm_size = ARRAY_SIZE(cpu_post_rlwinm_table);
 
 int cpu_post_test_rlwinm (void)
 {
@@ -124,7 +107,7 @@ int cpu_post_test_rlwinm (void)
 
                if (ret != 0)
                {
-                   post_log ("Error at rlwinm test %d !\n", i);
+                   post_log ("Error at rlwinm test %d !\n", i);
                }
            }
 
@@ -137,8 +120,8 @@ int cpu_post_test_rlwinm (void)
 
                if (ret != 0)
                {
-                   post_log ("Error at rlwinm test %d !\n", i);
-               }
+                   post_log ("Error at rlwinm test %d !\n", i);
+               }
            }
        }
     }