* Added support for both PCMCIA slots (at the same time!) on MPC8xx

* Patch by Rod Boyce, 21 Nov 2002:
  fix PCMCIA on MBX8xx board

* Patch by Pierre Aubert , 21 Nov 2002
  Add CFG_CPM_POST_WORD_ADDR to make the offset of the
  bootmode word in DPRAM configurable
diff --git a/board/sc520_cdp/flash.c b/board/sc520_cdp/flash.c
index e434512..973cde8 100644
--- a/board/sc520_cdp/flash.c
+++ b/board/sc520_cdp/flash.c
@@ -171,7 +171,7 @@
 int	flash_erase (flash_info_t *info, int s_first, int s_last)
 {
     ulong result;
-    int iflag, cflag, prot, sect;
+    int iflag, prot, sect;
     int rc = ERR_OK;
     int chip1, chip2;
 
diff --git a/board/sc520_cdp/sc520_cdp.c b/board/sc520_cdp/sc520_cdp.c
index cc818d2..41f5e3a 100644
--- a/board/sc520_cdp/sc520_cdp.c
+++ b/board/sc520_cdp/sc520_cdp.c
@@ -285,4 +285,6 @@
 	minor |= ali512x_cio_in(20)?1:0;
 	
 	printf("AMD SC520 CDP revision %d.%d\n", major, minor);
+	
+	return 0;
 }