* [PATCH v2] staging:board: remove unnecessary function
@ 2014-12-17 18:33 Tsung-Han Lin
0 siblings, 0 replies; only message in thread
From: Tsung-Han Lin @ 2014-12-17 18:33 UTC (permalink / raw)
To: gregkh
Cc: grant.likely, robh+dt, horms+renesas, damm+renesas, devel,
linux-kernel, devicetree
Remove the unnecessary 'of_can_translate_address',
which is already removed in commit
d9c6866be8a145e32da616d8dcbae806032d75b5 ("of: kill off
of_can_translate_address").
Signed-off-by: Tsung-Han Lin <tsunghan.tw@gmail.com>
---
drivers/staging/board/board.c | 3 +--
1 file changed, 1 insertion(+), 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;
--
2.1.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-17 18:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-17 18:33 [PATCH v2] staging:board: remove unnecessary function Tsung-Han Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®