Commit 6308e71be484be4cc4df8889cf22a77bc0cde48e

Authored by Grygorii Strashko
Committed by Tom Rini
1 parent eb6a5c3c02

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -128,7 +128,7 @@
128 128 nand_curr_device = dev;
129 129  
130 130 #ifdef CONFIG_SYS_NAND_SELECT_DEVICE
131   - board_nand_select_device(mtd->priv, dev);
  131 + board_nand_select_device(mtd_to_nand(mtd), dev);
132 132 #endif
133 133  
134 134 return 0;