Commit 193006f7 authored by Vasiliy Kulikov's avatar Vasiliy Kulikov Committed by Paul Mundt
Browse files

sh: boards: mach-se: use IS_ERR() instead of NULL check

clk_get() returns ERR_PTR() on error, not NULL.
Signed-off-by: default avatarVasiliy Kulikov <>
Reviewed-by: default avatarGuennadi Liakhovetski <>
Signed-off-by: default avatarPaul Mundt <>
parent 4bd5d259
......@@ -871,14 +871,14 @@ static int __init devices_setup(void)
/* set SPU2 clock to 83.4 MHz */
clk = clk_get(NULL, "spu_clk");
if (clk) {
if (!IS_ERR(clk)) {
clk_set_rate(clk, clk_round_rate(clk, 83333333));
/* change parent of FSI A */
clk = clk_get(NULL, "fsia_clk");
if (clk) {
if (!IS_ERR(clk)) {
clk_set_parent(clk, &fsimcka_clk);
clk_set_rate(clk, 11000);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment