X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fhamradio%2Fscc.c;h=ce9e7af020da583d04bc80243614c18a4becd7a3;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=2049556d1764f4b93da0fa9cfca993fc118530ec;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/net/hamradio/scc.c b/drivers/net/hamradio/scc.c index 2049556d1..ce9e7af02 100644 --- a/drivers/net/hamradio/scc.c +++ b/drivers/net/hamradio/scc.c @@ -173,6 +173,7 @@ #include #include #include +#include #include @@ -180,7 +181,6 @@ #include #include #include -#include #include "z8530.h" @@ -237,7 +237,7 @@ static io_port Vector_Latch; /* These provide interrupt save 2-step access to the Z8530 registers */ -static spinlock_t iolock = SPIN_LOCK_UNLOCKED; /* Guards paired accesses */ +static DEFINE_SPINLOCK(iolock); /* Guards paired accesses */ static inline unsigned char InReg(io_port port, unsigned char reg) {