]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-parport: Fix adapter list handling
authorJean Delvare <khali@linux-fr.org>
Sun, 1 May 2011 16:18:49 +0000 (18:18 +0200)
committerJean Delvare <khali@endymion.delvare>
Sun, 1 May 2011 16:18:49 +0000 (18:18 +0200)
commitb1ff6a78b4ae5ba7454a95753221f714c907c778
treec2f1b47a7ff678de38413b05016cb0ded3e8f714
parentcc5ba97bd0c435c0e04b1361027d53bfead9c7f1
i2c-parport: Fix adapter list handling

Use a standard list with proper locking to handle the list of
adapters. Thankfully it only matters on systems with more than one
parallel port, which are very rare.

Thanks to Lukasz Kapiec for reporting the problem to me.

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