From: Wenyou Yang Date: Tue, 27 Sep 2016 03:00:32 +0000 (+0800) Subject: i2c: at91_i2c: Change error return -ENODEV to -EINVAL X-Git-Tag: v2016.11-rc3~32^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52f37333bc3277cf182e4afb9d59ef2c6f09816e;p=u-boot 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 Reviewed-by: Heiko Schocher --- diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c index dcd3ce8627..4bc54eea59 100644 --- a/drivers/i2c/at91_i2c.c +++ b/drivers/i2c/at91_i2c.c @@ -190,7 +190,7 @@ static int at91_i2c_enable_clk(struct udevice *dev) clk_rate = clk_get_rate(&clk); if (!clk_rate) - return -ENODEV; + return -EINVAL; bus->bus_clk_rate = clk_rate;