diff options
author | Shiji Yang <yangshiji66@outlook.com> | 2025-07-25 08:20:44 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-08-01 17:58:58 -0600 |
commit | 39ae954b04ef2fc4a8c14410379b663deb391fde (patch) | |
tree | e34e2bd77e3f74360eca578263e2016025af0622 /tools/u_boot_pylib/test_util.py | |
parent | 1d782a3f229c269d01e5b7a94744bcd7f53e3f47 (diff) |
env: mtd: add the missing put_mtd_device()
The mtd device is got in setup_mtd_device(), we must put the mtd
device before exiting the function to update the mtd use count.
This patch fixes the following env error:
> Removing MTD device #2 (u-boot-env) with use count 1
> Error when deleting partition "u-boot-env" (-16)
Fixes: 03fb08d4aef8 ("env: Introduce support for MTD")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Diffstat (limited to 'tools/u_boot_pylib/test_util.py')
0 files changed, 0 insertions, 0 deletions