clk: Keep enable count consistent over reparent
When reparenting a clock we have to make sure the new parent is enabled
when the clock was enabled on the old parent. Also we have to decrease
the old parents use counter when the clock was enabled.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4cb70c7 commit c21794d0eea0dad22cb659ca41b13464f0ee1212
@Sascha Hauer Sascha Hauer authored on 1 Feb 2017
Showing 1 changed file
View
drivers/clk/clk.c