summaryrefslogtreecommitdiff
path: root/common/fb_nand.c
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2017-06-26 19:12:56 -0500
committerTom Rini <trini@konsulko.com>2017-07-11 22:41:46 -0400
commitedba8cc4f363112597466909e99b20a3b4469447 (patch)
tree6878b102da6e1df59847e4fdfeeea1d1fffd2410 /common/fb_nand.c
parentbfdba68eac662bd5cf1a423aec91fce35ee40312 (diff)
common: use get_nand_dev_by_index()
As part of preparation for nand DM conversion the new API has been introduced to remove direct access to nand_info array. So, use it here instead of accessing to nand_info array directly. Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
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 c8c79e9238..3d027d4375 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;
}