diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2017-06-26 19:12:58 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-11 22:41:47 -0400 |
commit | 6308e71be484be4cc4df8889cf22a77bc0cde48e (patch) | |
tree | aadb59ac51d2e180ce1a0db05ec185a07f859b5a /cmd/nand.c | |
parent | eb6a5c3c020099bbbc41cf3509718828ec1733cc (diff) |
cmd: nand: remove direct access to struct mtd_info->priv
Replace direct access to struct mtd_info->priv with proper
accessor mtd_to_nand().
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Diffstat (limited to 'cmd/nand.c')
-rw-r--r-- | cmd/nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/nand.c b/cmd/nand.c index d6542e50f2..a2152ec826 100644 --- a/cmd/nand.c +++ b/cmd/nand.c @@ -128,7 +128,7 @@ static int set_dev(int dev) nand_curr_device = dev; #ifdef CONFIG_SYS_NAND_SELECT_DEVICE - board_nand_select_device(mtd->priv, dev); + board_nand_select_device(mtd_to_nand(mtd), dev); #endif return 0; |