Correct SPL uses of LMB
authorSimon Glass <sjg@chromium.org>
Sun, 5 Feb 2023 22:40:13 +0000 (15:40 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 12:41:39 +0000 (07:41 -0500)
This converts 9 usages of this option to the non-SPL form, since there is
no SPL_LMB defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arc/lib/bootm.c
arch/arm/lib/bootm.c
arch/m68k/lib/bootm.c
arch/microblaze/lib/bootm.c
arch/powerpc/lib/bootm.c
arch/riscv/lib/bootm.c
arch/sandbox/lib/bootm.c
arch/x86/lib/bootm.c
boot/image-board.c

index 07b2c15..2dd0034 100644 (file)
@@ -29,7 +29,7 @@ static int boot_prep_linux(struct bootm_headers *images)
 {
        int ret;
 
-       if (CONFIG_IS_ENABLED(LMB)) {
+       if (IS_ENABLED(CONFIG_LMB)) {
                ret = image_setup_linux(images);
                if (ret)
                        return ret;
index e414ef8..c562857 100644 (file)
@@ -199,7 +199,7 @@ static void boot_prep_linux(struct bootm_headers *images)
 {
        char *commandline = env_get("bootargs");
 
-       if (CONFIG_IS_ENABLED(OF_LIBFDT) && CONFIG_IS_ENABLED(LMB) && images->ft_len) {
+       if (CONFIG_IS_ENABLED(OF_LIBFDT) && IS_ENABLED(CONFIG_LMB) && images->ft_len) {
                debug("using: FDT\n");
                if (image_setup_linux(images)) {
                        panic("FDT creation failed!");
index c1c9bdc..f18bed2 100644 (file)
@@ -60,7 +60,7 @@ int do_bootm_linux(int flag, int argc, char *const argv[],
        }
        set_clocks_in_mhz(kbd);
 
-       if (CONFIG_IS_ENABLED(LMB)) {
+       if (IS_ENABLED(CONFIG_LMB)) {
                ret = image_setup_linux(images);
                if (ret)
                        goto error;
index 4a54214..930384f 100644 (file)
@@ -73,7 +73,7 @@ static void boot_jump_linux(struct bootm_headers *images, int flag)
 
 static void boot_prep_linux(struct bootm_headers *images)
 {
-       if (CONFIG_IS_ENABLED(OF_LIBFDT) && CONFIG_IS_ENABLED(LMB) && images->ft_len) {
+       if (CONFIG_IS_ENABLED(OF_LIBFDT) && IS_ENABLED(CONFIG_LMB) && images->ft_len) {
                debug("using: FDT\n");
                if (image_setup_linux(images)) {
                        printf("FDT creation failed! hanging...");
index 7b392b0..910121e 100644 (file)
@@ -214,7 +214,7 @@ static int boot_body_linux(struct bootm_headers *images)
        if (ret)
                return ret;
 
-       if (CONFIG_IS_ENABLED(LMB)) {
+       if (IS_ENABLED(CONFIG_LMB)) {
                ret = image_setup_linux(images);
                if (ret)
                        return ret;
index f5f8b4c..276677a 100644 (file)
@@ -64,7 +64,7 @@ static void announce_and_cleanup(int fake)
 
 static void boot_prep_linux(struct bootm_headers *images)
 {
-       if (CONFIG_IS_ENABLED(OF_LIBFDT) && CONFIG_IS_ENABLED(LMB) && images->ft_len) {
+       if (CONFIG_IS_ENABLED(OF_LIBFDT) && IS_ENABLED(CONFIG_LMB) && images->ft_len) {
                debug("using: FDT\n");
                if (image_setup_linux(images)) {
                        printf("FDT creation failed! hanging...");
index 28f4a74..dc8b8e4 100644 (file)
@@ -55,7 +55,7 @@ static int boot_prep_linux(struct bootm_headers *images)
 {
        int ret;
 
-       if (CONFIG_IS_ENABLED(LMB)) {
+       if (IS_ENABLED(CONFIG_LMB)) {
                ret = image_setup_linux(images);
                if (ret)
                        return ret;
index 04e475b..873e2bc 100644 (file)
@@ -78,7 +78,7 @@ static int boot_prep_linux(struct bootm_headers *images)
        size_t len;
        int ret;
 
-       if (CONFIG_IS_ENABLED(OF_LIBFDT) && CONFIG_IS_ENABLED(LMB) && images->ft_len) {
+       if (CONFIG_IS_ENABLED(OF_LIBFDT) && IS_ENABLED(CONFIG_LMB) && images->ft_len) {
                debug("using: FDT\n");
                if (image_setup_linux(images)) {
                        puts("FDT creation failed! hanging...");
index e5d71a3..25b60ec 100644 (file)
@@ -927,7 +927,7 @@ int image_setup_linux(struct bootm_headers *images)
        int ret;
 
        /* This function cannot be called without lmb support */
-       if (!CONFIG_IS_ENABLED(LMB))
+       if (!IS_ENABLED(CONFIG_LMB))
                return -EFAULT;
        if (CONFIG_IS_ENABLED(OF_LIBFDT))
                boot_fdt_add_mem_rsv_regions(lmb, *of_flat_tree);