mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
ram: rk3399: Fix .set_rate_index() error handling
Functions pointed to by this op pointer can return non-zero values indicating an error. Ensure any error value is propagated back up the call-chain. Signed-off-by: Lee Jones <lee@kernel.org> Tested-by: Xavier Drudis Ferran <xdrudis@tinet.cat> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
fc1526f651
commit
7b561e2ab8
1 changed files with 3 additions and 1 deletions
|
@ -3005,7 +3005,9 @@ static int sdram_init(struct dram_info *dram,
|
|||
params->base.stride = calculate_stride(params);
|
||||
dram_all_config(dram, params);
|
||||
|
||||
dram->ops->set_rate_index(dram, params);
|
||||
ret = dram->ops->set_rate_index(dram, params);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
debug("Finish SDRAM initialization...\n");
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue