diff options
author | Rob Herring <robh@kernel.org> | 2014-05-07 16:23:56 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-05-13 15:11:09 -0400 |
commit | d9c6866be8a145e32da616d8dcbae806032d75b5 (patch) | |
tree | 1ce6005ef541265b379480556db5d09f4d5802ae /include/linux/of_address.h | |
parent | b8acee3ef83f0fc50e57a3d4c91234982befda95 (diff) |
of: kill off of_can_translate_address
of_can_translate_address only checks some conditions for address
translation, but does not check other conditions like having range
properties. The checks it does do are redundant with
__of_address_translate. The only difference is printing a message or
not. Since we only have a single caller that does the full translation
anyway, just remove of_can_translate_address and quiet the error
message.
Cc: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Frank Rowand <frank.rowand@sonymobile.com>
Reviewed-by: Frank Rowand <frank.rowand@sonymobile.com>
Diffstat (limited to 'include/linux/of_address.h')
-rw-r--r-- | include/linux/of_address.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 5f6ed6b182b8..906ca7681756 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h | |||
@@ -40,7 +40,6 @@ extern u64 of_translate_dma_address(struct device_node *dev, | |||
40 | 40 | ||
41 | #ifdef CONFIG_OF_ADDRESS | 41 | #ifdef CONFIG_OF_ADDRESS |
42 | extern u64 of_translate_address(struct device_node *np, const __be32 *addr); | 42 | extern u64 of_translate_address(struct device_node *np, const __be32 *addr); |
43 | extern bool of_can_translate_address(struct device_node *dev); | ||
44 | extern int of_address_to_resource(struct device_node *dev, int index, | 43 | extern int of_address_to_resource(struct device_node *dev, int index, |
45 | struct resource *r); | 44 | struct resource *r); |
46 | extern struct device_node *of_find_matching_node_by_address( | 45 | extern struct device_node *of_find_matching_node_by_address( |