]> git.baikalelectronics.ru Git - uboot.git/commit
spl: Correct call to spl_common_init() with SPL_STACK_R_MALLOC_SIMPLE_LEN
authorTom Rini <trini@konsulko.com>
Mon, 20 Mar 2017 18:19:27 +0000 (14:19 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 21 Mar 2017 11:14:17 +0000 (07:14 -0400)
commitd00415d4c9336f35a33265f5b5cb3994d7764eaf
tree99ab05a63b3d61d6e2e6ba1254e33729a2681ef0
parent38ecfa719b0fabd5f60e1769207ba40485e5db3a
spl: Correct call to spl_common_init() with SPL_STACK_R_MALLOC_SIMPLE_LEN

Calls to IS_ENABLED() on a non-y/n option will always be false, even
when set.  We can correct this by adding a new bool value that is set
based on the conditions required for SPL_STACK_R_MALLOC_SIMPLE_LEN to be
set instead.

Fixes: 8f280587f403 ("spl: Add spl_early_init()")
Reported-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
Changes in v2:
- Fix thinko pointed out by Lokesh
common/spl/spl.c