i2c-s3c2410: fix check for being in suspend.
authorBen Dooks <ben-linux@fluff.org>
Fri, 31 Oct 2008 16:10:22 +0000 (16:10 +0000)
committerBen Dooks <ben-linux@fluff.org>
Tue, 16 Dec 2008 20:19:53 +0000 (20:19 +0000)
commitbe44f01e8af3862767f466f89c12640a2f2b0038
tree49f0127b1692b178c2786e5068adba54d37c01dc
parenta804644a1a31a0b85e4c7d3c49f30419513cb6c1
i2c-s3c2410: fix check for being in suspend.

As noted by Julia Lawall <julia@diku.dk>, we can never
trigger the check for being in suspend due to the result
of !readl(i2c->regs + S3C2410_IICCON) & S3C2410_IICCON_IRQEN
always being 0.

Add suspend/resume hooks to stop i2c transactions happening
until the driver has been resumed.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-s3c2410.c