Skip to content
Snippets Groups Projects
Commit 6308e71b authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Tom Rini
Browse files

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: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
parent eb6a5c3c
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ static int set_dev(int dev) ...@@ -128,7 +128,7 @@ static int set_dev(int dev)
nand_curr_device = dev; nand_curr_device = dev;
#ifdef CONFIG_SYS_NAND_SELECT_DEVICE #ifdef CONFIG_SYS_NAND_SELECT_DEVICE
board_nand_select_device(mtd->priv, dev); board_nand_select_device(mtd_to_nand(mtd), dev);
#endif #endif
return 0; return 0;
......
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