]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lmb: Fix lmb property's defination under struct lmb
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Tue, 14 Dec 2021 12:19:12 +0000 (05:19 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 14 Dec 2021 13:02:14 +0000 (14:02 +0100)
Under struct lmb {} the lmb property's should be defined only if
CONFIG_LMB_MEMORY_REGIONS is defined.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
include/lmb.h

index ab277ca800046a28ff6737ecd85149e2f6af0c0f..1476d78c28238050cd164d6e949cf1a10a333757 100644 (file)
@@ -68,7 +68,7 @@ struct lmb_region {
 struct lmb {
        struct lmb_region memory;
        struct lmb_region reserved;
-#if !IS_ENABLED(CONFIG_LMB_USE_MAX_REGIONS)
+#if IS_ENABLED(CONFIG_LMB_MEMORY_REGIONS)
        struct lmb_property memory_regions[CONFIG_LMB_MEMORY_REGIONS];
        struct lmb_property reserved_regions[CONFIG_LMB_RESERVED_REGIONS];
 #endif