diff options
author | Rob Herring <robh@kernel.org> | 2019-09-05 11:44:24 +0100 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-10-08 13:50:22 -0500 |
commit | 3a9ac959ba2825a3a6235bc909d369cc30386e9e (patch) | |
tree | 9c1cbd6933cc3da0a64bf0b236ecb55a4e615780 /drivers/of/address.c | |
parent | a36a383dc30103cd2b0472ae635848cc1e25c4ab (diff) | |
download | lwn-3a9ac959ba2825a3a6235bc909d369cc30386e9e.tar.gz lwn-3a9ac959ba2825a3a6235bc909d369cc30386e9e.zip |
of: Remove unused of_find_matching_node_by_address()
of_find_matching_node_by_address() is unused, so remove it.
Cc: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/address.c')
-rw-r--r-- | drivers/of/address.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index 978427a9d5e6..0c3cf515c510 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -826,25 +826,6 @@ int of_address_to_resource(struct device_node *dev, int index, } EXPORT_SYMBOL_GPL(of_address_to_resource); -struct device_node *of_find_matching_node_by_address(struct device_node *from, - const struct of_device_id *matches, - u64 base_address) -{ - struct device_node *dn = of_find_matching_node(from, matches); - struct resource res; - - while (dn) { - if (!of_address_to_resource(dn, 0, &res) && - res.start == base_address) - return dn; - - dn = of_find_matching_node(dn, matches); - } - - return NULL; -} - - /** * of_iomap - Maps the memory mapped IO for a given device_node * @device: the device whose io range will be mapped |