powerpc/mpc5121: fix NULL test in mpc5121_clk_get utility function.
commit23faf63123e306b4a134f6d6c501813f6c8599dc
authorroel kluin <roel.kluin@gmail.com>
Fri, 9 Jan 2009 22:49:04 +0000 (9 15:49 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 9 Jan 2009 22:49:04 +0000 (9 15:49 -0700)
tree2cdc14814e2a0e902b42d0f6a593ec09147a3423
parent5886188dc7ba9a76babcd37452f44079a9a77f71
powerpc/mpc5121: fix NULL test in mpc5121_clk_get utility function.

strcmp on NULL results in a segmentation fault, also, remove the second,
redundant test on dev

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/512x/clock.c