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)
commit56acc7a39ac4ac7638cdc32cd3d0832ebbc834e4
treec2f1b47a7ff678de38413b05016cb0ded3e8f714
parenta6e5e2be44616c8400f9ec2f635b10f8e579217c
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