mirror of
https://xff.cz/git/u-boot/
synced 2025-10-20 01:14:39 +02:00
ddr: altera: sdram: Clean up sdram_mmr_init_full() part 8
Fix the return value so that standard errno return values can be used. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user