Skip to contentSkip to conversation

staging:board: remove unnecessary function

PATCH New Tsung-Han Lin 1 participant 1 message Dec 17, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging:board: remove unnecessary function

Remove the unnecessary 'of_can_translate_address', which is already removed in commit d9c6866be8a145e32da616d8dcbae806032d75b5 ("of: kill off of_can_translate_address").

---
 drivers/staging/board/board.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/board/board.c +1 -2
index 6050fbdfd31f..d5a6abc84519 100644
@@ -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;
Signature · 6 lines
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html