orinoco: encapsulate driver locking
commitf0dee5301aa6064a014baaeadc93322518a3b3c4
authorDavid Kilroy <kilroyd@googlemail.com>
Sat, 23 Oct 2010 15:59:31 +0000 (23 16:59 +0100)
committerDavid Kilroy <kilroyd@googlemail.com>
Sat, 23 Oct 2010 16:09:01 +0000 (23 17:09 +0100)
treec8147fc0f7e1a5454135b14990b0ff50c74d385b
parent5d75d2873489d47de31a29fb8793d5e61826e66a
orinoco: encapsulate driver locking

Local bus and USB drivers will need to do locking differently.

The original orinoco_usb patches had a boolean variable controlling
whether spin_lock_bh was used, or irq based locking. This version
provides wrappers for the lock functions and the drivers specify the
functions pointers needed.

This will introduce a performance penalty, but I'm not expecting it to
be noticable.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/airport.c
drivers/net/wireless/orinoco/hermes.c
drivers/net/wireless/orinoco/hermes.h
drivers/net/wireless/orinoco/main.c
drivers/net/wireless/orinoco/orinoco.h
drivers/net/wireless/orinoco/orinoco_cs.c
drivers/net/wireless/orinoco/spectrum_cs.c