Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0814e8d5 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Greg Kroah-Hartman
Browse files

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: default avatarJakub Kicinski <kubakici@wp.pl>
Signed-off-by: default avatarJon Ringle <jringle@gridpoint.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9764e7a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}