From: Anatolij Gustschin Date: Fri, 21 Dec 2012 12:08:07 +0000 (+0100) Subject: mpc5121: don't check PSC ac97 using node name X-Git-Tag: MMI-PSA29.97-13-9~14974^2~1^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4ef34537ad303e2230ec543cccc7847f3c47ae8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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) * AC97 is special rate clock does * not go through normal path */ - if (strcmp("ac97", np->name) == 0) + if (of_device_is_compatible(np, "fsl,mpc5121-psc-ac97")) clk->rate = ac97_clk.rate; else psc_calc_rate(clk, pscnum, np);