diff options
author | Kees Cook <keescook@chromium.org> | 2020-06-03 15:40:56 -0700 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-06-04 19:09:28 +0200 |
commit | f5641d053d46a9a18fe13f2ecb4a7b4a66d9cdf7 (patch) | |
tree | 5540912ec7a537f9d9733ff8b8b47dc669b5e896 | |
parent | d741cb045cb5552d9e636e7e447f237d3b1667ad (diff) |
pwm: Add missing "CONFIG_" prefix
The IS_ENABLED() use was missing the CONFIG_ prefix which would have
lead to skipping this code.
Fixes: 3ad1f3a33286 ("pwm: Implement some checks for lowlevel drivers")
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index bca04965bfe6..004b2ea9b5fd 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -121,7 +121,7 @@ static int pwm_device_request(struct pwm_device *pwm, const char *label) pwm->chip->ops->get_state(pwm->chip, pwm, &pwm->state); trace_pwm_get(pwm, &pwm->state); - if (IS_ENABLED(PWM_DEBUG)) + if (IS_ENABLED(CONFIG_PWM_DEBUG)) pwm->last = pwm->state; } |