Commit 13c11072 authored by Tsung-Han Lin's avatar Tsung-Han Lin Committed by Greg Kroah-Hartman

staging:board: remove unnecessary function

Remove the unnecessary 'of_can_translate_address',
which is already removed in commit
d9c6866b ("of: kill off
of_can_translate_address").
Signed-off-by: default avatarTsung-Han Lin <tsunghan.tw@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f0cc93b
...@@ -11,8 +11,7 @@ static bool find_by_address(u64 base_address) ...@@ -11,8 +11,7 @@ static bool find_by_address(u64 base_address)
struct resource res; struct resource res;
while (dn) { while (dn) {
if (of_can_translate_address(dn) if (!of_address_to_resource(dn, 0, &res)) {
&& !of_address_to_resource(dn, 0, &res)) {
if (res.start == base_address) { if (res.start == base_address) {
of_node_put(dn); of_node_put(dn);
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment