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: Gerlando Falauto <gerlando.falauto@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
14f40f31e8
commit
9c2f451e0d
|
@ -148,11 +148,13 @@ static void __init mpc83xx_km_setup_arch(void)
|
||||||
|
|
||||||
for_each_node_by_name(np, "ucc")
|
for_each_node_by_name(np, "ucc")
|
||||||
par_io_of_config(np);
|
par_io_of_config(np);
|
||||||
}
|
|
||||||
np = of_find_compatible_node(NULL, "network", "ucc_geth");
|
/* Only apply this quirk when par_io is available */
|
||||||
if (np != NULL) {
|
np = of_find_compatible_node(NULL, "network", "ucc_geth");
|
||||||
quirk_mpc8360e_qe_enet10();
|
if (np != NULL) {
|
||||||
of_node_put(np);
|
quirk_mpc8360e_qe_enet10();
|
||||||
|
of_node_put(np);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_QUICC_ENGINE */
|
#endif /* CONFIG_QUICC_ENGINE */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue