Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of/fdt: convert initial_boot_params to opaque pointer

Now that all accesses to FDT header data has been converted to accessor
helpers, initial_boot_params can become an opaque pointer.

Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Stephen Chivers <schivers@csc.com>

+2 -2
+1 -1
drivers/of/fdt.c
··· 372 372 int __initdata dt_root_addr_cells; 373 373 int __initdata dt_root_size_cells; 374 374 375 - struct boot_param_header *initial_boot_params; 375 + void *initial_boot_params; 376 376 377 377 #ifdef CONFIG_OF_EARLY_FLATTREE 378 378
+1 -1
include/linux/of_fdt.h
··· 78 78 /* TBD: Temporary export of fdt globals - remove when code fully merged */ 79 79 extern int __initdata dt_root_addr_cells; 80 80 extern int __initdata dt_root_size_cells; 81 - extern struct boot_param_header *initial_boot_params; 81 + extern void *initial_boot_params; 82 82 83 83 extern char __dtb_start[]; 84 84 extern char __dtb_end[];