[PATCH v15 04/12] ARM: hisi: enable HiP04

Arnd Bergmann arnd at arndb.de
Mon Jul 28 07:38:10 PDT 2014


On Monday 28 July 2014 21:57:48 Haojian Zhuang wrote:
> +
> +static const char *hip04_compat[] __initconst = {
> +       "hisilicon,hip04-d01",
> +       NULL,
> +};
> +
> +DT_MACHINE_START(HIP04, "Hisilicon HiP04 (Flattened Device Tree)")
> +       .dt_compat      = hip04_compat,
> +MACHINE_END
> 

One last-minute comment: you match the ID of a particular board (d01)
but the string lists the name of the SoC family.
I'd just changen the match table to list "hisilicon,hip04" directly
rather than the board.
In the dts file, the root node should already be compatible with both.

	Arnd



More information about the linux-arm-kernel mailing list