Commit 03c5ecd1 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt

sh: Check return value of clk_get on ms7724

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 10305853
...@@ -769,16 +769,20 @@ static int __init devices_setup(void) ...@@ -769,16 +769,20 @@ static int __init devices_setup(void)
/* set SPU2 clock to 83.4 MHz */ /* set SPU2 clock to 83.4 MHz */
clk = clk_get(NULL, "spu_clk"); clk = clk_get(NULL, "spu_clk");
clk_set_rate(clk, clk_round_rate(clk, 83333333)); if (clk) {
clk_put(clk); clk_set_rate(clk, clk_round_rate(clk, 83333333));
clk_put(clk);
}
/* change parent of FSI A */ /* change parent of FSI A */
clk = clk_get(NULL, "fsia_clk"); clk = clk_get(NULL, "fsia_clk");
clk_register(&fsimcka_clk); if (clk) {
clk_set_parent(clk, &fsimcka_clk); clk_register(&fsimcka_clk);
clk_set_rate(clk, 11000); clk_set_parent(clk, &fsimcka_clk);
clk_set_rate(&fsimcka_clk, 11000); clk_set_rate(clk, 11000);
clk_put(clk); clk_set_rate(&fsimcka_clk, 11000);
clk_put(clk);
}
/* SDHI0 connected to cn7 */ /* SDHI0 connected to cn7 */
gpio_request(GPIO_FN_SDHI0CD, NULL); gpio_request(GPIO_FN_SDHI0CD, NULL);
......
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