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

arm/dt: Add dt machine definition

This patch adds a DT_MACHINE_START macro to use instead of
MACHINE_START when creating a machine_desc that supports using the
device tree.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

+7
+7
arch/arm/include/asm/mach/arch.h
··· 74 74 #define MACHINE_END \ 75 75 }; 76 76 77 + #define DT_MACHINE_START(_name, _namestr) \ 78 + static const struct machine_desc __mach_desc_##_name \ 79 + __used \ 80 + __attribute__((__section__(".arch.info.init"))) = { \ 81 + .nr = ~0, \ 82 + .name = _namestr, 83 + 77 84 #endif