[2.6 patch] drivers/net/ne.c: fix warning with -Wundef

2005-07-22 Thread Adrian Bunk
This patch fixes the following warning with -Wundef:

<--  snip  -->

...
  CC  drivers/net/ne.o
drivers/net/ne.c:134:7: warning: "CONFIG_PLAT_OAKS32R" is not defined
...

<--  snip  -->


Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>

--- linux-2.6.13-rc3-mm1-full/drivers/net/ne.c.old  2005-07-22 
18:24:32.0 +0200
+++ linux-2.6.13-rc3-mm1-full/drivers/net/ne.c  2005-07-22 18:24:50.0 
+0200
@@ -131,7 +131,7 @@
 
 #ifdef CONFIG_PLAT_MAPPI
 #  define DCR_VAL 0x4b
-#elif CONFIG_PLAT_OAKS32R
+#elif defined(CONFIG_PLAT_OAKS32R)
 #  define DCR_VAL 0x48
 #else
 #  define DCR_VAL 0x49

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[2.6 patch] drivers/net/ne.c: fix warning with -Wundef

2005-07-22 Thread Adrian Bunk
This patch fixes the following warning with -Wundef:

--  snip  --

...
  CC  drivers/net/ne.o
drivers/net/ne.c:134:7: warning: CONFIG_PLAT_OAKS32R is not defined
...

--  snip  --


Signed-off-by: Adrian Bunk [EMAIL PROTECTED]

--- linux-2.6.13-rc3-mm1-full/drivers/net/ne.c.old  2005-07-22 
18:24:32.0 +0200
+++ linux-2.6.13-rc3-mm1-full/drivers/net/ne.c  2005-07-22 18:24:50.0 
+0200
@@ -131,7 +131,7 @@
 
 #ifdef CONFIG_PLAT_MAPPI
 #  define DCR_VAL 0x4b
-#elif CONFIG_PLAT_OAKS32R
+#elif defined(CONFIG_PLAT_OAKS32R)
 #  define DCR_VAL 0x48
 #else
 #  define DCR_VAL 0x49

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/