summaryrefslogtreecommitdiff
path: root/common/fb_nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/fb_nand.c')
-rw-r--r--common/fb_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fb_nand.c b/common/fb_nand.c
index c8c79e9..3d027d4 100644
--- a/common/fb_nand.c
+++ b/common/fb_nand.c
@@ -59,7 +59,7 @@ static int fb_nand_lookup(const char *partname,
return -EINVAL;
}
- *mtd = nand_info[dev->id->num];
+ *mtd = get_nand_dev_by_index(dev->id->num);
return 0;
}