diff options
-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; |