]> git.baikalelectronics.ru Git - kernel.git/commit
of: introduce common FDT machine related functions
authorRob Herring <rob.herring@calxeda.com>
Wed, 28 Aug 2013 02:41:56 +0000 (21:41 -0500)
committerRob Herring <rob.herring@calxeda.com>
Thu, 10 Oct 2013 01:03:54 +0000 (20:03 -0500)
commit728cb9243d0e3fa3f64a6640d0c265d7e054af11
tree71f3db9c68ced5a0d8fe69b282c08181fbdf0c40
parent0e2a8bc9962bf6ad96ff42006b96764f85a89d07
of: introduce common FDT machine related functions

Introduce common of_flat_dt_match_machine and
of_flat_dt_get_machine_name functions to unify architectures' handling
of machine level model and compatible properties.

Several architectures match the root compatible string with an arch
specific list of machine descriptors duplicating the same search
algorithm. Create a common implementation with a simple architecture
specific hook to iterate over each machine's match table.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
drivers/of/fdt.c
include/linux/of_fdt.h