]> git.baikalelectronics.ru Git - kernel.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)
commit289555b185d33f74bc1d1b2942d2910d67c82da0
tree0a50664ab4b1eb1c5341e82ea0841951d193a818
parent622e140af54627a9873895daff199740627b0db6
[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