]> git.sur5r.net Git - u-boot/blobdiff - fs/cramfs/cramfs.c
arm/km: portl2 environment address update to P1B
[u-boot] / fs / cramfs / cramfs.c
index 369d1f16740a2abbb040842f994c694f966f8234..910955dfc8ec4c3bd740b06f024608266728b786 100644 (file)
@@ -26,9 +26,6 @@
 
 #include <common.h>
 #include <malloc.h>
-
-#if defined(CONFIG_CMD_JFFS2)
-
 #include <asm/byteorder.h>
 #include <linux/stat.h>
 #include <jffs2/jffs2.h>
@@ -44,8 +41,12 @@ struct cramfs_super super;
 
 /* CPU address space offset calculation macro, struct part_info offset is
  * device address space offset, so we need to shift it by a device start address. */
+#if !defined(CONFIG_SYS_NO_FLASH)
 extern flash_info_t flash_info[];
 #define PART_OFFSET(x) (x->offset + flash_info[x->dev->id->num].start[0])
+#else
+#define PART_OFFSET(x) (x->offset)
+#endif
 
 static int cramfs_read_super (struct part_info *info)
 {
@@ -343,5 +344,3 @@ int cramfs_check (struct part_info *info)
        }
        return 1;
 }
-
-#endif /* CFG_FS_CRAMFS */