i2c-s3c2410: fix check for being in suspend.
commit3f07ba9e48bfc6d2ec4abb305ecc41ccc05007df
authorBen Dooks <ben-linux@fluff.org>
Fri, 31 Oct 2008 16:10:22 +0000 (31 16:10 +0000)
committerBen Dooks <ben-linux@fluff.org>
Fri, 31 Oct 2008 16:13:47 +0000 (31 16:13 +0000)
tree277e03a1247f69aca74aa6ab3a1165c7da07bc17
parent828d9982ebf994a20293b79e9773039f1d74d44f
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