From: Gerlando Falauto <gerlando.fala...@keymile.com>

There is no point in applying this quirk when par_io is not present.

Signed-off-by: Gerlando Falauto <gerlando.fala...@keymile.com>
Signed-off-by: Holger Brunck <holger.bru...@keymile.com>
cc: Kumar Gala <ga...@kernel.crashing.org>
---
 arch/powerpc/platforms/83xx/km83xx.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/arch/powerpc/platforms/83xx/km83xx.c 
b/arch/powerpc/platforms/83xx/km83xx.c
index 88b1af0..bf4c447 100644
--- a/arch/powerpc/platforms/83xx/km83xx.c
+++ b/arch/powerpc/platforms/83xx/km83xx.c
@@ -148,11 +148,13 @@ static void __init mpc83xx_km_setup_arch(void)
 
                for_each_node_by_name(np, "ucc")
                        par_io_of_config(np);
-       }
-       np = of_find_compatible_node(NULL, "network", "ucc_geth");
-       if (np != NULL) {
-               quirk_mpc8360e_qe_enet10();
-               of_node_put(np);
+
+               /* Only apply this quirk when par_io is available */
+               np = of_find_compatible_node(NULL, "network", "ucc_geth");
+               if (np != NULL) {
+                       quirk_mpc8360e_qe_enet10();
+                       of_node_put(np);
+               }
        }
 #endif /* CONFIG_QUICC_ENGINE */
 }
-- 
1.7.1

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to