mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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>
This commit is contained in:
parent
b6844e8f64
commit
85cad1b0b6
@ -74,4 +74,11 @@ static const struct machine_desc __mach_desc_##_type \
|
||||
#define MACHINE_END \
|
||||
};
|
||||
|
||||
#define DT_MACHINE_START(_name, _namestr) \
|
||||
static const struct machine_desc __mach_desc_##_name \
|
||||
__used \
|
||||
__attribute__((__section__(".arch.info.init"))) = { \
|
||||
.nr = ~0, \
|
||||
.name = _namestr,
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user