diff options
author | Tom Rini <trini@ti.com> | 2012-07-24 21:54:41 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-01 12:58:12 (GMT) |
commit | 87a1acbb6991521af2a8d1f75c2adacbece9ab5e (patch) | |
tree | e505c3b25fc07e51ba68f65e1801857663ea7256 /arch/arm/cpu/armv7/am33xx/emif4.c | |
parent | c48c89543310bae633c7aa44a0fc94b9c97c8453 (diff) | |
download | u-boot-87a1acbb6991521af2a8d1f75c2adacbece9ab5e.tar.xz |
am33xx: Turn a number of 'int' functions to 'void'
A number of memory initalization functions were int and always returned
0. Further it's not feasible to be doing error checking here, so simply
turn them into void functions.
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx/emif4.c')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/emif4.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/emif4.c b/arch/arm/cpu/armv7/am33xx/emif4.c index e04e970..66ab892 100644 --- a/arch/arm/cpu/armv7/am33xx/emif4.c +++ b/arch/arm/cpu/armv7/am33xx/emif4.c @@ -107,7 +107,6 @@ static void config_vtp(void) static void config_emif_ddr2(void) { - int ret; struct sdram_config cfg; struct sdram_timing tmg; struct ddr_phy_control phyc; @@ -130,18 +129,9 @@ static void config_emif_ddr2(void) cfg.refresh_sh = DDR2_EMIF_SDREF; /* Program EMIF instance */ - ret = config_ddr_phy(&phyc); - if (ret < 0) - printf("Couldn't configure phyc\n"); - - - ret = set_sdram_timings(&tmg); - if (ret < 0) - printf("Couldn't configure timings\n"); - - ret = config_sdram(&cfg); - if (ret < 0) - printf("Couldn't configure SDRAM\n"); + config_ddr_phy(&phyc); + set_sdram_timings(&tmg); + config_sdram(&cfg); } void config_ddr(short ddr_type) |