staging: ft1000: Always extract device number from netdev name.
authorMarek Belisko <marek.belisko@open-nandra.com>
Mon, 13 Dec 2010 09:39:20 +0000 (10:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 13 Dec 2010 18:25:54 +0000 (10:25 -0800)
commit448d40140196b33f63a0a3f3f8bcad8f14c9c432
treeb9833dde1379e77e662713953efb4dba1c0708ad
parent983bbfd091be5b3e1a729f31cce29431fbff2d27
staging: ft1000: Always extract device number from netdev name.

Using gCardIndex as global variable was not correctly used because
for every plugged device was set to 0 in init_ft1000_netdev.

Remove global definition. Use it locally and for every plugged
device extract number from net device name.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c