mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-09 08:46:59 +02:00
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>
This commit is contained in:
parent
eb6a5c3c02
commit
6308e71be4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user