aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/board/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/board/board.c')
-rw-r--r--drivers/staging/board/board.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/board/board.c b/drivers/staging/board/board.c
index 6050fbdfd31f..d5a6abc84519 100644
--- a/drivers/staging/board/board.c
+++ b/drivers/staging/board/board.c
@@ -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;