commit | dde6ec759ca43c1714100ec9b7c4ae00fec86ca8 | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@bootlin.com> | Sun Dec 02 10:54:26 2018 +0100 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Thu Dec 06 00:45:36 2018 +0530 |
tree | 77bada215c14905037cea762a22f16077498aefe | |
parent | 9080e2869b6a1a3508fd9f48376bb544f8676e0b [diff] |
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: ff4afa8a981e ("mtd: uboot: search for an equivalent MTD name with the mtdids") Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Tested-by: Heiko Schocher <hs@denx.de>