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>
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 */
}