From: Kuninori Morimoto Date: Fri, 19 Nov 2010 07:23:26 +0000 (+0000) Subject: ARM: mach-shmobile: clock-sh7372: modify error code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a57b1a9bdfb61e8d7dc7acc5e2d8bc04c549e668;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: mach-shmobile: clock-sh7372: modify error code Signed-off-by: Kuninori Morimoto Signed-off-by: Paul Mundt --- 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;