ARM: mach-shmobile: clock-sh7372: remove fsidiv bogus disable
Current FSIDIV clock framework had bogus disable. This patch remove it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
committed by
Paul Mundt
parent
ea49b1669b
commit
e8ee13a818
@@ -453,10 +453,8 @@ static int fsidiv_enable(struct clk *clk)
|
|||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
value = __raw_readl(clk->mapping->base) >> 16;
|
value = __raw_readl(clk->mapping->base) >> 16;
|
||||||
if (value < 2) {
|
if (value < 2)
|
||||||
fsidiv_disable(clk);
|
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
|
||||||
|
|
||||||
__raw_writel((value << 16) | 0x3, clk->mapping->base);
|
__raw_writel((value << 16) | 0x3, clk->mapping->base);
|
||||||
|
|
||||||
@@ -468,11 +466,6 @@ static int fsidiv_set_rate(struct clk *clk,
|
|||||||
{
|
{
|
||||||
int idx;
|
int idx;
|
||||||
|
|
||||||
if (clk->parent->rate == rate) {
|
|
||||||
fsidiv_disable(clk);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
idx = (clk->parent->rate / rate) & 0xffff;
|
idx = (clk->parent->rate / rate) & 0xffff;
|
||||||
if (idx < 2)
|
if (idx < 2)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
|
Reference in New Issue
Block a user