mtd: partitions: redboot: seek fis-index-block in the right node
authorCorentin Labbe <clabbe@baylibre.com>
Thu, 20 May 2021 11:48:50 +0000 (11:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:38 +0000 (16:56 +0200)
commit2f8824f556a3ebea9840c53326e55cc183316611
treecad116d0bec9eb203720df94e486f69f60cd0c24
parenta16eae11f004fa193865f2858514996069b3fca0
mtd: partitions: redboot: seek fis-index-block in the right node

[ Upstream commit 237960880960863fb41888763d635b384cffb104 ]

fis-index-block is seeked in the master node and not in the partitions node.
For following binding and current usage, the driver need to check the
partitions subnode.

Fixes: c0e118c8a1a3 ("mtd: partitions: Add OF support to RedBoot partitions")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210520114851.1274609-1-clabbe@baylibre.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/parsers/redboot.c