of: kill off of_can_translate_address
authorRob Herring <robh@kernel.org>
Wed, 7 May 2014 20:23:56 +0000 (15:23 -0500)
committerRob Herring <robh@kernel.org>
Tue, 13 May 2014 19:11:09 +0000 (14:11 -0500)
commitd9c6866be8a145e32da616d8dcbae806032d75b5
tree1ce6005ef541265b379480556db5d09f4d5802ae
parentb8acee3ef83f0fc50e57a3d4c91234982befda95
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>
drivers/of/address.c
drivers/of/platform.c
include/linux/of_address.h