]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/m54455evb/m54455evb.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / freescale / m54455evb / m54455evb.c
index 0ca268ee1689a61573dc524de4307c43583f5b66..b9850c1a2a28354226602f5cce7d5f02e892e768 100644 (file)
@@ -5,23 +5,7 @@
  * Copyright (C) 2004-2007, 2012 Freescale Semiconductor, Inc.
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  *
- * 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>
@@ -38,7 +22,7 @@ int checkboard(void)
        return 0;
 };
 
-phys_size_t initdram(int board_type)
+int initdram(void)
 {
        u32 dramsize;
 #ifdef CONFIG_CF_SBF
@@ -91,7 +75,9 @@ phys_size_t initdram(int board_type)
 
        udelay(100);
 #endif
-       return (dramsize << 1);
+       gd->ram_size = dramsize << 1;
+
+       return 0;
 };
 
 int testdram(void)