]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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 07b2c1540d0cf95ca22b3052b0dc174b80eb2e98..2dd003445f8fe39e597a87bbf481181a641af4da 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 e414ef826735f0a4dc167a05258614e92fac7464..c56285738a265d157b57fd5f0527c1fceaf08573 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 c1c9bdceb50a88019de91823310d4e1671756a2c..f18bed235d45a416967822c41260457bc105774c 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 4a5421497e5ac9059ced520b5648cc7dbcf9e2bf..930384f4015f3f8cce05a70c10b25ecde1b351a8 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 7b392b06bcbadc6cacf0f86471b448055535e1c1..910121ec9c853a3639577a5e17bc1e4493d664d1 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 f5f8b4c73339b51a735431f0a4092c399f346414..276677a5e2f913ec5d4908fb888b5a7a7ae86e2b 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 28f4a746fb660cf339c661c89f860e6022cee40e..dc8b8e46cb41b478691aa83bd5d5e8bfd91dfd11 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 04e475bdc244b540368576034b2f2d77cfa4277f..873e2bc176f3b9ceeec40291e424f3f4bade68f9 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 e5d71a3d5419d4f1a1cd89b5e27eec8a9ea54f38..25b60ec30b3503ac3c649d288456eaf82a80bf65 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);