diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-12-02 10:54:26 +0100 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-12-06 00:45:36 +0530 |
commit | 96b06434e56ce5dca391e8417d293132ff7164e0 (patch) | |
tree | 77bada215c14905037cea762a22f16077498aefe /drivers/bios_emulator | |
parent | 492151b2093ee4df173f7e10da4938ef7c2a2156 (diff) | |
download | u-boot-96b06434e56ce5dca391e8417d293132ff7164e0.tar.gz |
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>
Diffstat (limited to 'drivers/bios_emulator')
0 files changed, 0 insertions, 0 deletions