Files
u-boot/drivers
Patrice Chotard e6b7afe737 mtd: Fix get_mtdparts()
When ENV_IS_IN_UBI is enable, get_mtdparts is called before relocation.

During first get_mtdparts() call, mtdparts is not available in environment,
it can be retrieved by calling board_mtdparts_default(), but following
env_set() do nothing as we are before relocation. Finally mtdparts is
still not available in environment.

At second get_mtdparts() call, use_defaults is false, but mtdparts is still
not in environment and is NULL.

Remove use_defaults bool, only mtdparts criteria is useful.

Fixes: commit 5ffcd50612 ("mtd: Use default mtdparts/mtids when not defined
in the environment")

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
2019-06-06 17:40:14 +02:00
..
2019-01-15 15:28:53 -05:00
2019-05-21 08:03:38 +02:00
2019-05-21 17:33:23 -06:00
2019-02-27 09:12:33 +08:00
2019-05-18 08:15:35 -04:00
2019-06-06 17:40:14 +02:00
2019-02-20 15:27:08 +08:00
2019-05-10 22:48:11 +02:00
2019-05-31 23:27:12 +02:00
2018-07-19 16:31:38 -04:00
2019-05-24 10:14:10 -07:00
2018-11-29 09:30:06 -07:00
2019-05-05 08:48:50 -04:00