浏览代码

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: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Jakub Kicinski 10 年之前
父节点
当前提交
0814e8d5da
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/tty/serial/sc16is7xx.c

+ 1 - 0
drivers/tty/serial/sc16is7xx.c

@@ -1050,6 +1050,7 @@ static int sc16is7xx_probe(struct device *dev,
 		else
 			return PTR_ERR(s->clk);
 	} else {
+		clk_prepare_enable(s->clk);
 		freq = clk_get_rate(s->clk);
 	}