Skip to content
Commit 96b06434 authored by Boris Brezillon's avatar Boris Brezillon Committed by Jagan Teki
Browse files

mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

The environment is not guaranteed to contain a valid mtdids variable
when called from mtd_search_alternate_name(). Call get_mtdids() instead
of env_get("mtdids").

Fixes: ff4afa8a

 ("mtd: uboot: search for an equivalent MTD name with the mtdids")
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Tested-by: default avatarHeiko Schocher <hs@denx.de>
parent 492151b2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment