From f88ee42102cdffe71bcc8fbe1c0527dace557959 Mon Sep 17 00:00:00 2001 From: ikegami-t <44117581+ikegami-t@users.noreply.github.com> Date: Fri, 30 Aug 2019 00:42:41 +0900 Subject: [PATCH] Update gen_probe.c --- drivers/mtd/chips/gen_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c index e5bd3c2bc3b22..32501bf754094 100644 --- a/drivers/mtd/chips/gen_probe.c +++ b/drivers/mtd/chips/gen_probe.c @@ -183,7 +183,7 @@ static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, for (; type <= CFI_DEVICETYPE_X32; type<<=1) { cfi->device_type = type; - if (cp->probe_chip(map, 0, NULL, cfi)) + if (cp->probe_chip(map, nr_chips << cfi->chipshift, NULL, cfi)) return 1; } }