Skip to content

Commit

Permalink
powerpc/83xx: apply mpc8360e quirk for kmeter1 only when par_io is pr…
Browse files Browse the repository at this point in the history
…esent

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>
  • Loading branch information
Gerlando Falauto authored and Kumar Gala committed Feb 13, 2013
1 parent 14f40f3 commit 9c2f451
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions arch/powerpc/platforms/83xx/km83xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down

0 comments on commit 9c2f451

Please sign in to comment.