From afd4597feca31770f45291ab4ef0cf14a79bdac1 Mon Sep 17 00:00:00 2001 From: Rajkumar Ayyasamy Date: Mon, 27 Nov 2017 15:51:31 +0530 Subject: [PATCH] mtd: nand: comparing with dev_id instead of id Change-Id: Iefae4b3e3cb9da8effbb4f03877e9f9f2e381f43 Signed-off-by: Rajkumar Ayyasamy --- drivers/mtd/nand/ipq_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/ipq_nand.c b/drivers/mtd/nand/ipq_nand.c index 363588034f..4bcbc59c16 100644 --- a/drivers/mtd/nand/ipq_nand.c +++ b/drivers/mtd/nand/ipq_nand.c @@ -1520,7 +1520,7 @@ static const struct nand_flash_dev *flash_get_dev(uint8_t dev_id) int i; for (i = 0; nand_flash_ids[i].id; i++) { - if (nand_flash_ids[i].id == dev_id) + if (nand_flash_ids[i].dev_id == dev_id) return &nand_flash_ids[i]; }