Skip to content
Snippets Groups Projects
Commit 2f77c7f4 authored by Scott Wood's avatar Scott Wood
Browse files

JFFS2: Eliminate compiler error when both NAND and OneNAND are enabled.

parent c57fc289
No related branches found
No related tags found
No related merge requests found
...@@ -449,20 +449,18 @@ static inline void *get_node_mem(u32 off) ...@@ -449,20 +449,18 @@ static inline void *get_node_mem(u32 off)
static inline void put_fl_mem(void *buf) static inline void put_fl_mem(void *buf)
{ {
#if defined(CONFIG_JFFS2_NAND) && \
defined(CONFIG_CMD_NAND)
struct mtdids *id = current_part->dev->id; struct mtdids *id = current_part->dev->id;
if (id->type == MTD_DEV_TYPE_NAND) switch (id->type) {
#if defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND)
case MTD_DEV_TYPE_NAND:
return put_fl_mem_nand(buf); return put_fl_mem_nand(buf);
#endif #endif
#if defined(CONFIG_CMD_ONENAND) #if defined(CONFIG_CMD_ONENAND)
struct mtdids *id = current_part->dev->id; case MTD_DEV_TYPE_ONENAND:
if (id->type == MTD_DEV_TYPE_ONENAND)
return put_fl_mem_onenand(buf); return put_fl_mem_onenand(buf);
#endif #endif
}
} }
/* Compression names */ /* Compression names */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment