]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[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)
commit84b5abe69ff600a559e1a1fa29f1edad707d4e2f
tree0a50664ab4b1eb1c5341e82ea0841951d193a818
parente0f205d9c656da9dad6340f75e33a96014b7d23f
[ARM] Fix i2c-pxa slave mode support

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>
drivers/i2c/busses/i2c-pxa.c