patch-2.4.23 linux-2.4.23/drivers/net/wan/wanpipe_multppp.c

Next file: linux-2.4.23/drivers/net/winbond-840.c
Previous file: linux-2.4.23/drivers/net/wan/sdlamain.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/net/wan/wanpipe_multppp.c linux-2.4.23/drivers/net/wan/wanpipe_multppp.c
@@ -2358,7 +2358,7 @@
 
 void s508_lock (sdla_t *card, unsigned long *smp_flags)
 {
-#if defined(__SMP__) || defined(LINUX_2_4)
+#if defined(CONFIG_SMP) || defined(LINUX_2_4)
 	spin_lock_irqsave(&card->wandev.lock, *smp_flags);
         if (card->next){
 		/* It is ok to use spin_lock here, since we
@@ -2372,7 +2372,7 @@
 
 void s508_unlock (sdla_t *card, unsigned long *smp_flags)
 {
-#if defined(__SMP__) || defined(LINUX_2_4)
+#if defined(CONFIG_SMP) || defined(LINUX_2_4)
 	if (card->next){
 		spin_unlock(&card->next->wandev.lock);
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)