Patch by Mathijs Haarman, 08 May 2003:
Add lan91c96 driver (tested on Lubbock and custom PXA250 board only)
diff --git a/post/sysmon.c b/post/sysmon.c
index c8fcefc..f069caa 100644
--- a/post/sysmon.c
+++ b/post/sysmon.c
@@ -50,10 +50,10 @@
 #include <watchdog.h>
 #include <i2c.h>
 
-static int sysmon_temp_invalid = 0;
-
 #if CONFIG_POST & CFG_POST_SYSMON
 
+static int sysmon_temp_invalid = 0;
+
 /* #define DEBUG */
 
 #define	RELOC(x) if (x != NULL) x = (void *) ((ulong) (x) + gd->reloc_off)
diff --git a/post/uart.c b/post/uart.c
index 354c6c7..3eaafd8 100644
--- a/post/uart.c
+++ b/post/uart.c
@@ -73,7 +73,9 @@
 static char *ctlr_name[2] = { "SMC", "SCC" };
 
 static int used_by_uart[2] = { -1, -1 };
+#if defined(SCC_ENET)
 static int used_by_ether[2] = { -1, -1 };
+#endif
 
 static int proff_smc[] = { PROFF_SMC1, PROFF_SMC2 };
 static int proff_scc[] =