aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2010-11-19 02:23:26 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-11-24 01:31:03 -0500
commita57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668 (patch)
tree8df21430851fc87c0ddc0183d489c423b47449d5
parent22de4e1fe446794acaebdf19dcaff4256d659972 (diff)
ARM: mach-shmobile: clock-sh7372: modify error code
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/arm/mach-shmobile/clock-sh7372.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/clock-sh7372.c b/arch/arm/mach-shmobile/clock-sh7372.c
index 4191e2921127..41663e0ca104 100644
--- a/arch/arm/mach-shmobile/clock-sh7372.c
+++ b/arch/arm/mach-shmobile/clock-sh7372.c
@@ -454,7 +454,7 @@ static int fsidiv_enable(struct clk *clk)
454 454
455 value = __raw_readl(clk->mapping->base) >> 16; 455 value = __raw_readl(clk->mapping->base) >> 16;
456 if (value < 2) 456 if (value < 2)
457 return -ENOENT; 457 return -EIO;
458 458
459 __raw_writel((value << 16) | 0x3, clk->mapping->base); 459 __raw_writel((value << 16) | 0x3, clk->mapping->base);
460 460
@@ -468,7 +468,7 @@ static int fsidiv_set_rate(struct clk *clk,
468 468
469 idx = (clk->parent->rate / rate) & 0xffff; 469 idx = (clk->parent->rate / rate) & 0xffff;
470 if (idx < 2) 470 if (idx < 2)
471 return -ENOENT; 471 return -EINVAL;
472 472
473 __raw_writel(idx << 16, clk->mapping->base); 473 __raw_writel(idx << 16, clk->mapping->base);
474 return 0; 474 return 0;