fdt: Add fdt_node_offset_by_compat_reg helper
authorKumar Gala <galak@kernel.crashing.org>
Sun, 4 Jul 2010 17:48:21 +0000 (12:48 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 20 Jul 2010 09:40:06 +0000 (04:40 -0500)
commit75e73afd5784c0df6a5e35c5a5b2e2fce0296bc0
tree06cbabb33e76153a7bbab9c15daa6f126e2c8968
parenta0342c0804251c84a7ec1a2c78ea3bb30b5b5058
fdt: Add fdt_node_offset_by_compat_reg helper

Given a compatible string and physical address try and find a node that
matches.  This is useful when we want to find a specific device node to
update (for example if we have multiple PCI nodes we can use the
physical address to distinguish them when trying to update the device
tree).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
common/fdt_support.c
include/fdt_support.h