This patch is for fixing pwm driver which influences pwm malfunction
after suspend & resume funtcion.
Checking Enable count is originally for LPA mode which is not
exist anymore.
Change-Id: I330362bdd10af00f15761cd9dc7613b21d107d35
Signed-off-by: Kang KyungWoo <kwoo.kang@samsung.com>
chan->duty_ns = -1;
}
/* Save pwm registers*/
- if (chip->enable_cnt)
- chip->reg_tcfg0 = __raw_readl(chip->base + REG_TCFG0);
+ chip->reg_tcfg0 = __raw_readl(chip->base + REG_TCFG0);
clk_disable_unprepare(chip->base_clk);
exynos_update_ip_idle_status(chip->idle_ip_index, 1);
clk_prepare_enable(chip->base_clk);
/* Restore pwm registers*/
- if (chip->enable_cnt)
- __raw_writel(chip->reg_tcfg0, chip->base + REG_TCFG0);
+ __raw_writel(chip->reg_tcfg0, chip->base + REG_TCFG0);
for (chan = 0; chan < SAMSUNG_PWM_NUM; ++chan) {
if (chip->variant.output_mask & BIT(chan)) {