i2c-s3c2410: Enable i2c clock only when doing some transfert
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Thu, 15 Jul 2010 13:06:14 +0000 (15:06 +0200)
committerBen Dooks <ben-linux@fluff.org>
Thu, 21 Oct 2010 22:43:27 +0000 (23:43 +0100)
This patch modify the s3c2410 i2c driver behaviour to enable the
i2c clock only when needed. I'm not sure if this has a big impact
on power usage but at least it's fixing a bug with the uda1380
codec which needs to be hard reset'ed if the i2c clock is enabled
before it's powered on (at least on h1940).

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>

No differences found