patch-2.3.99-pre6 linux/drivers/net/wan/sdla_ppp.c

Next file: linux/drivers/net/wan/sdladrv.c
Previous file: linux/drivers/net/wan/sdla_fr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/drivers/net/wan/sdla_ppp.c linux/drivers/net/wan/sdla_ppp.c
@@ -74,6 +74,7 @@
 * Jan 06, 1997	Gene Kozin	Initial version.
 *****************************************************************************/
 
+#include <linux/config.h>
 #include <linux/version.h>
 #include <linux/kernel.h>	/* printk(), and other useful stuff */
 #include <linux/stddef.h>	/* offsetof(), etc. */
@@ -2896,7 +2897,7 @@
 
 void s508_lock (sdla_t *card, unsigned long *smp_flags)
 {
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 	spin_lock_irqsave(&card->lock, *smp_flags);
 #else
 	disable_irq(card->hw.irq);
@@ -2905,7 +2906,7 @@
 
 void s508_unlock (sdla_t *card, unsigned long *smp_flags)
 {
-#ifdef __SMP__
+#ifdef CONFIG_SMP
         spin_unlock_irqrestore(&card->lock, *smp_flags);
 #else
 	enable_irq(card->hw.irq);

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