From: Kees Cook Date: Wed, 3 Jun 2020 22:40:56 +0000 (-0700) Subject: pwm: Add missing "CONFIG_" prefix X-Git-Tag: v5.10.7~2329^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5641d053d46a9a18fe13f2ecb4a7b4a66d9cdf7;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Uwe Kleine-König Signed-off-by: Thierry Reding --- 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; }