From: Grygorii Strashko Date: Tue, 27 Jun 2017 00:12:58 +0000 (-0500) Subject: cmd: nand: remove direct access to struct mtd_info->priv X-Git-Tag: v2017.09-rc1~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6308e71be484be4cc4df8889cf22a77bc0cde48e;p=platform%2Fkernel%2Fu-boot.git 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 --- diff --git a/cmd/nand.c b/cmd/nand.c index d6542e5..a2152ec 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;