]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/ddr/altera/sdram.c
ddr: altera: sdram: Clean up sdram_mmr_init_full() part 8
[karo-tx-uboot.git] / drivers / ddr / altera / sdram.c
index 295747b3fab322042c24634f12e1527a8c4f3a26..68a9b60e798b11611b84830de3858d0bcdddad6e 100644 (file)
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
+#include <errno.h>
 #include <div64.h>
 #include <watchdog.h>
 #include <asm/arch/fpga_manager.h>
@@ -621,7 +622,7 @@ static void sdr_load_regs(struct socfpga_sdram_config *cfg)
  *
  * Initialize the SDRAM MMR.
  */
-unsigned sdram_mmr_init_full(unsigned int sdr_phy_reg)
+int sdram_mmr_init_full(unsigned int sdr_phy_reg)
 {
        unsigned long status = 0;
        struct socfpga_sdram_config *cfg = &sdram_config;