i2c: rcar: check bus free before first message
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 28 May 2014 07:44:40 +0000 (09:44 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 1 Jun 2014 20:22:34 +0000 (22:22 +0200)
We should always check if the bus is free, independently if it is a read
or write. It should be done before the first message, though. After
that, we ourselves keep the bus busy. Remove a 'ret' assignment which
only silenced a build warning.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

No differences found