-
Uwe Kleine-König authored
.apply() assumes the clk to be for a given PWM iff the PWM is enabled. So make sure this is the case when .probe() completes. And in .remove() disable the according number of times. This fixes a clk enable/disable imbalance, if some PWMs are already running at probe time. Fixes: 9e37a53e (pwm: sifive: Add a driver for SiFive SoC PWM) Signed-off-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Tested-by:
Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by:
Thierry Reding <thierry.reding@gmail.com>
ace41d75