diff options
author | Anatolij Gustschin <agust@denx.de> | 2012-12-21 07:08:07 -0500 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-01-15 14:11:28 -0500 |
commit | f4ef34537ad303e2230ec543cccc7847f3c47ae8 (patch) | |
tree | c42ae1df316d5186c306b4207cd2cbb5a3a318e0 /arch/powerpc/platforms/512x | |
parent | fa6d459d64a60db41c476c16063670ca4297e1d1 (diff) |
mpc5121: don't check PSC ac97 using node name
The .dtsi now names all PSC nodes as "psc", so this ac97
check won't work. Check for ac97 PSC using compatible
property.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc/platforms/512x')
-rw-r--r-- | arch/powerpc/platforms/512x/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/512x/clock.c b/arch/powerpc/platforms/512x/clock.c index d0095c8ee579..7937361c5804 100644 --- a/arch/powerpc/platforms/512x/clock.c +++ b/arch/powerpc/platforms/512x/clock.c | |||
@@ -695,7 +695,7 @@ static void psc_clks_init(void) | |||
695 | * AC97 is special rate clock does | 695 | * AC97 is special rate clock does |
696 | * not go through normal path | 696 | * not go through normal path |
697 | */ | 697 | */ |
698 | if (strcmp("ac97", np->name) == 0) | 698 | if (of_device_is_compatible(np, "fsl,mpc5121-psc-ac97")) |
699 | clk->rate = ac97_clk.rate; | 699 | clk->rate = ac97_clk.rate; |
700 | else | 700 | else |
701 | psc_calc_rate(clk, pscnum, np); | 701 | psc_calc_rate(clk, pscnum, np); |