diff options
Diffstat (limited to 'drivers/pwm/pwm-bcm2835.c')
-rw-r--r-- | drivers/pwm/pwm-bcm2835.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pwm/pwm-bcm2835.c b/drivers/pwm/pwm-bcm2835.c index f6fe0b922e1e..52763063c100 100644 --- a/drivers/pwm/pwm-bcm2835.c +++ b/drivers/pwm/pwm-bcm2835.c | |||
@@ -72,11 +72,8 @@ static int bcm2835_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, | |||
72 | 72 | ||
73 | scaler = DIV_ROUND_CLOSEST(NSEC_PER_SEC, rate); | 73 | scaler = DIV_ROUND_CLOSEST(NSEC_PER_SEC, rate); |
74 | 74 | ||
75 | if (period_ns <= MIN_PERIOD) { | 75 | if (period_ns <= MIN_PERIOD) |
76 | dev_err(pc->dev, "period %d not supported, minimum %d\n", | ||
77 | period_ns, MIN_PERIOD); | ||
78 | return -EINVAL; | 76 | return -EINVAL; |
79 | } | ||
80 | 77 | ||
81 | writel(DIV_ROUND_CLOSEST(duty_ns, scaler), | 78 | writel(DIV_ROUND_CLOSEST(duty_ns, scaler), |
82 | pc->base + DUTY(pwm->hwpwm)); | 79 | pc->base + DUTY(pwm->hwpwm)); |