staging:board: remove unnecessary function
authorTsung-Han Lin <tsunghan.tw@gmail.com>
Wed, 17 Dec 2014 18:33:24 +0000 (02:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Jan 2015 00:17:11 +0000 (16:17 -0800)
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>
drivers/staging/board/board.c

index 6050fbdfd31fa6d2ed633d6b41bf4cf5fa0883e2..d5a6abc845191c939e7116699511b92bf5e6976f 100644 (file)
@@ -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;