summaryrefslogtreecommitdiffstats
path: root/drivers/staging/board
diff options
context:
space:
mode:
authorTsung-Han Lin <tsunghan.tw@gmail.com>2014-12-18 02:33:24 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-17 16:17:11 -0800
commit13c11072536f2613fcf551957a3e3ea972c067cf (patch)
tree116e508a073b5773fb6dcde4eac65aec52dcfb3c /drivers/staging/board
parent4f0cc93bbbea49b01da6a818766a3e0f79c10180 (diff)
downloadblackbird-op-linux-13c11072536f2613fcf551957a3e3ea972c067cf.tar.gz
blackbird-op-linux-13c11072536f2613fcf551957a3e3ea972c067cf.zip
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"). Signed-off-by: Tsung-Han Lin <tsunghan.tw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/board')
-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;
OpenPOWER on IntegriCloud