OSDN Git Service

sc16is7xx: enable the clock
authorJakub Kicinski <kubakici@wp.pl>
Mon, 16 Mar 2015 23:28:49 +0000 (00:28 +0100)
committerGreg 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

index e6b396e..36b3c26 100644 (file)
@@ -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);
        }