ar71xx: add v3.18 support
[openwrt.git] / target / linux / ar71xx / patches-3.18 / 300-MIPS-add-MIPS_MACHINE_NONAME-macro.patch
1 --- a/arch/mips/include/asm/mips_machine.h
2 +++ b/arch/mips/include/asm/mips_machine.h
3 @@ -36,6 +36,18 @@ static struct mips_machine machine_##_ty
4         .mach_setup     = _setup,                               \
5  };
6  
7 +#define MIPS_MACHINE_NONAME(_type, _id, _setup)                \
8 +static const char machine_id_##_type[] __initconst             \
9 +                       __aligned(1) = _id;                     \
10 +static struct mips_machine machine_##_type                     \
11 +               __used __section(.mips.machines.init) =         \
12 +{                                                              \
13 +       .mach_type      = _type,                                \
14 +       .mach_id        = machine_id_##_type,                   \
15 +       .mach_name      = NULL,                                 \
16 +       .mach_setup     = _setup,                               \
17 +};
18 +
19  extern long __mips_machines_start;
20  extern long __mips_machines_end;
21