i2c: sirf: fix the typo for setting bitrate to less than 100k

there is a typo before, it makes the final bitrate wrong, this patch fixes
it.

Signed-off-by: Zhiwu Song <Zhiwu.Song@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Zhiwu Song 2013-08-13 17:11:29 +08:00 committed by Wolfram Sang
parent ebae7dfab0
commit 4602bf1642

View File

@ -356,7 +356,7 @@ static int i2c_sirfsoc_probe(struct platform_device *pdev)
if (bitrate < 100000)
regval =
(2 * ctrl_speed) / (2 * bitrate * 11);
(2 * ctrl_speed) / (bitrate * 11);
else
regval = ctrl_speed / (bitrate * 5);