i2c: bcm-kona: fix error return code in bcm_kona_i2c_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 18 Nov 2013 13:03:08 +0000 (21:03 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 18 Nov 2013 19:26:23 +0000 (20:26 +0100)
commitcfff1f4a9367bfe0d88413e8807f8369e9564729
treeebdf2e781f5daffa767ae92a7848024e84b2f8fd
parent5e47eec00425830bfaf30f80a1a4f603dc60ae93
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>
drivers/i2c/busses/i2c-bcm-kona.c