Commit 9c2f451e authored by Gerlando Falauto's avatar Gerlando Falauto Committed by Kumar Gala

powerpc/83xx: apply mpc8360e quirk for kmeter1 only when par_io is present

There is no point in applying this quirk when par_io is not present.
Signed-off-by: default avatarGerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 14f40f31
......@@ -148,12 +148,14 @@ static void __init mpc83xx_km_setup_arch(void)
for_each_node_by_name(np, "ucc")
par_io_of_config(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 */
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment