Commit 2ae2b766 authored by Paul Mundt's avatar Paul Mundt

ARM: mach-shmobile: Fix up ap4evb build warnings.

The FSI changes introduced IS_ERR_VALUE() checks for error conditions,
despite clk_get() handing back a pointer. Switch these over to IS_ERR()
like the rest of the code.
Signed-off-by: default avatarPaul Mundt <>
parent 8d3e17ba
......@@ -745,14 +745,14 @@ static void __init ap4evb_init(void)
/* set SPU2 clock to 119.6 MHz */
clk = clk_get(NULL, "spu_clk");
if (!IS_ERR_VALUE(clk)) {
if (!IS_ERR(clk)) {
clk_set_rate(clk, clk_round_rate(clk, 119600000));
/* change parent of FSI A */
clk = clk_get(NULL, "fsia_clk");
if (!IS_ERR_VALUE(clk)) {
if (!IS_ERR(clk)) {
clk_set_parent(clk, &fsiackcr_clk);
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