summaryrefslogtreecommitdiff
path: root/arch/arm/mach-shmobile
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2010-11-19 07:23:26 +0000
committerPaul Mundt <lethal@linux-sh.org>2010-11-24 15:31:03 +0900
commita57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668 (patch)
tree8df21430851fc87c0ddc0183d489c423b47449d5 /arch/arm/mach-shmobile
parent22de4e1fe446794acaebdf19dcaff4256d659972 (diff)
downloadlinux-3.10-a57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668.tar.gz
linux-3.10-a57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668.tar.bz2
linux-3.10-a57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668.zip
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>
Diffstat (limited to 'arch/arm/mach-shmobile')
-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 4191e292112..41663e0ca10 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)
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;