OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9764e7a
)
sc16is7xx: enable the clock
author
Jakub Kicinski
<kubakici@wp.pl>
Mon, 16 Mar 2015 23:28:49 +0000
(
00:28
+0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 21:38:36 +0000
(22:38 +0100)
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>
drivers/tty/serial/sc16is7xx.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/sc16is7xx.c
b/drivers/tty/serial/sc16is7xx.c
index
e6b396e
..
36b3c26
100644
(file)
--- a/
drivers/tty/serial/sc16is7xx.c
+++ b/
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);
}