Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a57b1a9b authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Paul Mundt
Browse files

ARM: mach-shmobile: clock-sh7372: modify error code

parent 22de4e1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;