mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 15:26:03 +09:00
ram: sifive: Check return value on clk_enable()
The return value should be checked otherwise it's useless to assign the return value to 'ret'. Signed-off-by: Bin Meng <bin.meng@windriver.com>
This commit is contained in:
parent
08bff30d5d
commit
f8c9660bfe
|
@ -369,6 +369,11 @@ static int fu540_ddr_probe(struct udevice *dev)
|
|||
}
|
||||
|
||||
ret = clk_enable(&priv->ddr_clk);
|
||||
if (ret < 0) {
|
||||
debug("Could not enable DDR clock\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
priv->ctl = regmap_get_range(map, 0);
|
||||
priv->phy = regmap_get_range(map, 1);
|
||||
priv->physical_filter_ctrl = regmap_get_range(map, 2);
|
||||
|
|
Loading…
Reference in New Issue
Block a user