Now that ATAGS support is well contained, we can easily remove it from the kernel build if so desired. It has to explicitly be disabled, and only when DT support is selected. Note: disabling kernel ATAGS support does not prevent the usage of CONFIG_ARM_ATAG_DTB_COMPAT. Signed-off-by: Nicolas Pitre <nico@linaro.org> Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
20 lines
502 B
C
20 lines
502 B
C
#ifdef CONFIG_ATAGS_PROC
|
|
extern void save_atags(struct tag *tags);
|
|
#else
|
|
static inline void save_atags(struct tag *tags) { }
|
|
#endif
|
|
|
|
void convert_to_tag_list(struct tag *tags);
|
|
|
|
#ifdef CONFIG_ATAGS
|
|
struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr);
|
|
#else
|
|
static inline struct machine_desc *
|
|
setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr)
|
|
{
|
|
early_print("no ATAGS support: can't continue\n");
|
|
while (true);
|
|
unreachable();
|
|
}
|
|
#endif
|