From: Viresh Kumar Date: Thu, 9 Jun 2016 11:04:34 +0000 (+0530) Subject: greybus: pwm: Fix compilation with v4.3 kernel X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~266 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12e6895d1e343512990eec5ae8747b5968a8f8b8;p=platform%2Fkernel%2Flinux-rpi.git greybus: pwm: Fix compilation with v4.3 kernel pwm_is_enabled() wasn't enabled by v4.2-rc1, but it was based of v4.2-rc1. It was actually first included in v4.3. Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h index fd5a6cc..2a541fa 100644 --- a/drivers/staging/greybus/kernel_ver.h +++ b/drivers/staging/greybus/kernel_ver.h @@ -328,10 +328,10 @@ static inline void reinit_completion(struct completion *x) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) #include /* - * pwm_is_enabled() was first defined in 4.2-rc1 (first commit!). + * pwm_is_enabled() was first defined in 4.3. * PWMF_ENABLED was first defined in 3.5-rc2, but our code is * always newer than that. */