diff options
Diffstat (limited to 'drivers/pwm/pwm-imx.c')
-rw-r--r-- | drivers/pwm/pwm-imx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 008dc646225e..d600fd5cd4ba 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c | |||
@@ -129,7 +129,8 @@ static int imx_pwm_config_v2(struct pwm_chip *chip, | |||
129 | sr = readl(imx->mmio_base + MX3_PWMSR); | 129 | sr = readl(imx->mmio_base + MX3_PWMSR); |
130 | fifoav = sr & MX3_PWMSR_FIFOAV_MASK; | 130 | fifoav = sr & MX3_PWMSR_FIFOAV_MASK; |
131 | if (fifoav == MX3_PWMSR_FIFOAV_4WORDS) { | 131 | if (fifoav == MX3_PWMSR_FIFOAV_4WORDS) { |
132 | period_ms = DIV_ROUND_UP(pwm->period, NSEC_PER_MSEC); | 132 | period_ms = DIV_ROUND_UP(pwm_get_period(pwm), |
133 | NSEC_PER_MSEC); | ||
133 | msleep(period_ms); | 134 | msleep(period_ms); |
134 | 135 | ||
135 | sr = readl(imx->mmio_base + MX3_PWMSR); | 136 | sr = readl(imx->mmio_base + MX3_PWMSR); |