[ARM] Fix i2c-pxa slave mode support
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 28 Oct 2006 21:30:17 +0000 (22:30 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 28 Oct 2006 21:30:17 +0000 (22:30 +0100)
i2c-pxa times out when trying to enable slave mode due to an
incorrect test.  Also, check that i2c->slave is non-NULL
before dereferencing it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

No differences found