X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=drivers%2Fpwm%2Fpwm-ep93xx.c;h=bbf10ae02f0ecf9a147b4c6ee81e161113095519;hb=30c44659f4a3e7e1f9f47e895591b4b40bf62671;hp=e593e9c45c51c1118f88ae12cc4a546498c77b40;hpb=fe986f9d88ab8079c91669b7f175081f15491a80;p=mirror_ubuntu-bionic-kernel.git diff --git a/drivers/pwm/pwm-ep93xx.c b/drivers/pwm/pwm-ep93xx.c index e593e9c45c51..bbf10ae02f0e 100644 --- a/drivers/pwm/pwm-ep93xx.c +++ b/drivers/pwm/pwm-ep93xx.c @@ -82,7 +82,7 @@ static int ep93xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, * The clock needs to be enabled to access the PWM registers. * Configuration can be changed at any time. */ - if (!test_bit(PWMF_ENABLED, &pwm->flags)) { + if (!pwm_is_enabled(pwm)) { ret = clk_enable(ep93xx_pwm->clk); if (ret) return ret; @@ -113,7 +113,7 @@ static int ep93xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, ret = -EINVAL; } - if (!test_bit(PWMF_ENABLED, &pwm->flags)) + if (!pwm_is_enabled(pwm)) clk_disable(ep93xx_pwm->clk); return ret;