diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-11-18 08:03:08 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-11-18 14:26:23 -0500 |
commit | cfff1f4a9367bfe0d88413e8807f8369e9564729 (patch) | |
tree | ebdf2e781f5daffa767ae92a7848024e84b2f8fd /drivers/i2c/busses | |
parent | 5e47eec00425830bfaf30f80a1a4f603dc60ae93 (diff) |
i2c: bcm-kona: fix error return code in bcm_kona_i2c_probe()
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>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-bcm-kona.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-bcm-kona.c b/drivers/i2c/busses/i2c-bcm-kona.c index 7b7b7622b0d1..eb1ce6e4523a 100644 --- 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) | |||
792 | } | 792 | } |
793 | 793 | ||
794 | /* Parse bus speed */ | 794 | /* Parse bus speed */ |
795 | if (bcm_kona_i2c_assign_bus_speed(dev)) | 795 | rc = bcm_kona_i2c_assign_bus_speed(dev); |
796 | if (rc) | ||
796 | goto probe_disable_clk; | 797 | goto probe_disable_clk; |
797 | 798 | ||
798 | /* Enable internal clocks */ | 799 | /* Enable internal clocks */ |