提交 0814e8d5 编写于 作者: J Jakub Kicinski 提交者: Greg Kroah-Hartman

sc16is7xx: enable the clock

Although clk_disable_unprepare() is called both on .remove()
and in .probe() error path, the clock is never actually enabled.
Signed-off-by: NJakub Kicinski <kubakici@wp.pl>
Signed-off-by: NJon Ringle <jringle@gridpoint.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 9764e7a0
...@@ -1050,6 +1050,7 @@ static int sc16is7xx_probe(struct device *dev, ...@@ -1050,6 +1050,7 @@ static int sc16is7xx_probe(struct device *dev,
else else
return PTR_ERR(s->clk); return PTR_ERR(s->clk);
} else { } else {
clk_prepare_enable(s->clk);
freq = clk_get_rate(s->clk); freq = clk_get_rate(s->clk);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册