ARM: mach-shmobile: clock-sh7372: modify error code
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 19 Nov 2010 07:23:26 +0000 (07:23 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 24 Nov 2010 06:31:03 +0000 (15:31 +0900)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/clock-sh7372.c

index 4191e292112778f90d7b801cb0830358de111e81..41663e0ca104cc487338529930c6080065cf6709 100644 (file)
@@ -454,7 +454,7 @@ static int fsidiv_enable(struct clk *clk)
 
        value  = __raw_readl(clk->mapping->base) >> 16;
        if (value < 2)
-               return -ENOENT;
+               return -EIO;
 
        __raw_writel((value << 16) | 0x3, clk->mapping->base);
 
@@ -468,7 +468,7 @@ static int fsidiv_set_rate(struct clk *clk,
 
        idx = (clk->parent->rate / rate) & 0xffff;
        if (idx < 2)
-               return -ENOENT;
+               return -EINVAL;
 
        __raw_writel(idx << 16, clk->mapping->base);
        return 0;