mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
staging:board: remove unnecessary function
Remove the unnecessary 'of_can_translate_address',
which is already removed in commit
d9c6866be8
("of: kill off
of_can_translate_address").
Signed-off-by: Tsung-Han Lin <tsunghan.tw@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4f0cc93bbb
commit
13c1107253
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,7 @@ static bool find_by_address(u64 base_address)
|
|||
struct resource res;
|
||||
|
||||
while (dn) {
|
||||
if (of_can_translate_address(dn)
|
||||
&& !of_address_to_resource(dn, 0, &res)) {
|
||||
if (!of_address_to_resource(dn, 0, &res)) {
|
||||
if (res.start == base_address) {
|
||||
of_node_put(dn);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue