projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e47eec
)
i2c: bcm-kona: fix error return code in bcm_kona_i2c_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Mon, 18 Nov 2013 13:03:08 +0000
(21:03 +0800)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 18 Nov 2013 19:26:23 +0000
(20:26 +0100)
Fix to return a negative error code from the bus speed parse
error handling case instead of 0.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-bcm-kona.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-bcm-kona.c
b/drivers/i2c/busses/i2c-bcm-kona.c
index 7b7b7622b0d1d27308635824afff578e6a07fc11..eb1ce6e4523a291bb8a808379556780c9e666725 100644
(file)
--- a/
drivers/i2c/busses/i2c-bcm-kona.c
+++ b/
drivers/i2c/busses/i2c-bcm-kona.c
@@
-792,7
+792,8
@@
static int bcm_kona_i2c_probe(struct platform_device *pdev)
}
/* Parse bus speed */
- if (bcm_kona_i2c_assign_bus_speed(dev))
+ rc = bcm_kona_i2c_assign_bus_speed(dev);
+ if (rc)
goto probe_disable_clk;
/* Enable internal clocks */