dt: Add of_device_compatible_match()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 7 Jul 2016 22:35:59 +0000 (08:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 Jul 2016 04:29:56 +0000 (14:29 +1000)
commitb9c13fe32faaa71c4e4f8a426d79f8c93495e9f9
treefd5e37fb5b98fb52b13411c3f25c930bb01ce89e
parente2413a7dae52fab290b7a8d11ec8579657bab95b
dt: Add of_device_compatible_match()

This provides an equivalent of of_fdt_match() for non-flat trees.

This is more practical than matching an array of of_device_id structs
when converting a bunch of existing users of of_fdt_match().

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/of/base.c
include/linux/of.h