mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
i2c: at91_i2c: Change error return -ENODEV to -EINVAL
Change the error return value -ENODEV from to -EINVAL for more reasonable. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
2ccc07bbdc
commit
52f37333bc
@ -190,7 +190,7 @@ static int at91_i2c_enable_clk(struct udevice *dev)
|
|||||||
|
|
||||||
clk_rate = clk_get_rate(&clk);
|
clk_rate = clk_get_rate(&clk);
|
||||||
if (!clk_rate)
|
if (!clk_rate)
|
||||||
return -ENODEV;
|
return -EINVAL;
|
||||||
|
|
||||||
bus->bus_clk_rate = clk_rate;
|
bus->bus_clk_rate = clk_rate;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user