X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fibm_emac%2Fibm_emac_mal.c;h=e59f57f363caf3054af9441e554690afad64a085;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=6597791a728fa9a5183e1867c6624731e5d23828;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/net/ibm_emac/ibm_emac_mal.c b/drivers/net/ibm_emac/ibm_emac_mal.c index 6597791a7..e59f57f36 100644 --- a/drivers/net/ibm_emac/ibm_emac_mal.c +++ b/drivers/net/ibm_emac/ibm_emac_mal.c @@ -33,7 +33,7 @@ /* This lock protects the commac list. On today UP implementations, it's * really only used as IRQ protection in mal_{register,unregister}_commac() */ -static rwlock_t mal_list_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(mal_list_lock); int mal_register_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac) {