]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-parport: Fix a minor race on driver unload
authorJean Delvare <khali@linux-fr.org>
Tue, 1 May 2007 21:26:30 +0000 (23:26 +0200)
committerJean Delvare <khali@hyperion.delvare>
Tue, 1 May 2007 21:26:30 +0000 (23:26 +0200)
commit8bebd5b99e4a48fcd492a81f7299243a7bc9a9b6
tree33536cb27d8dd6299b731d52cf0b51ebecd3ce4a
parent58aa5e735f4c177815f0e06a65697be1edd11b6d
i2c-parport: Fix a minor race on driver unload

When unloading the driver, we really want to unregister the i2c adapter
before we power it off, rather than the other way around.

Also speed up the bus a bit when we can sense SCL. The slaves will
stretch the line as needed.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-parport.c