i2c-parport: Fix adapter list handling
commitbcd0df39767d1c4352566d909291deac099b222b
authorJean Delvare <khali@linux-fr.org>
Sun, 1 May 2011 16:18:49 +0000 (1 18:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:06:37 +0000 (9 15:06 -0700)
treec0245c316ef9161f9aab916fae2ae7ee70ed5ef8
parentbbb267c7d49c3a9be39e7f59bae56500afee0ab3
i2c-parport: Fix adapter list handling

commit 56acc7a39ac4ac7638cdc32cd3d0832ebbc834e4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-parport.c