diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2010-11-19 07:23:26 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-11-24 15:31:03 +0900 |
commit | a57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668 (patch) | |
tree | 8df21430851fc87c0ddc0183d489c423b47449d5 /arch/arm | |
parent | 22de4e1fe446794acaebdf19dcaff4256d659972 (diff) | |
download | blackbird-obmc-linux-a57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668.tar.gz blackbird-obmc-linux-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')
-rw-r--r-- | arch/arm/mach-shmobile/clock-sh7372.c | 4 |
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) 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; |