]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
of/fdt: pass early_init_dt_reserve_memory_arch() with bool type nomap
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 30 May 2019 10:39:27 +0000 (19:39 +0900)
committerRob Herring <robh@kernel.org>
Mon, 8 Jul 2019 21:28:15 +0000 (15:28 -0600)
The third argument 'nomap' of early_init_dt_reserve_memory_arch() is
bool. It is preferred to pass it with a bool type parameter.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c

index cd17dc62a71980ad7bc163f57b9ca4a640811ee8..9cdf14b9aaabe06a4a0dde1029e8d28425287564 100644 (file)
@@ -479,7 +479,8 @@ static int __init __reserved_mem_reserve_reg(unsigned long node,
        phys_addr_t base, size;
        int len;
        const __be32 *prop;
-       int nomap, first = 1;
+       int first = 1;
+       bool nomap;
 
        prop = of_get_flat_dt_prop(node, "reg", &len);
        if (!prop)
@@ -594,7 +595,7 @@ void __init early_init_fdt_scan_reserved_mem(void)
                fdt_get_mem_rsv(initial_boot_params, n, &base, &size);
                if (!size)
                        break;
-               early_init_dt_reserve_memory_arch(base, size, 0);
+               early_init_dt_reserve_memory_arch(base, size, false);
        }
 
        of_scan_flat_dt(__fdt_scan_reserved_mem, NULL);
@@ -612,7 +613,7 @@ void __init early_init_fdt_reserve_self(void)
        /* Reserve the dtb region */
        early_init_dt_reserve_memory_arch(__pa(initial_boot_params),
                                          fdt_totalsize(initial_boot_params),
-                                         0);
+                                         false);
 }
 
 /**