diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-06-09 16:34:34 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-09 12:28:48 -0700 |
commit | 12e6895d1e343512990eec5ae8747b5968a8f8b8 (patch) | |
tree | 56036c163a641032960d0fe1d06d9d0088f98b5f /drivers/staging | |
parent | cb14e97623d9289a30c3cfab02747581dda22f58 (diff) | |
download | linux-12e6895d1e343512990eec5ae8747b5968a8f8b8.tar.bz2 |
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 <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/greybus/kernel_ver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h index fd5a6cc42eaa..2a541fa5f5bc 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 <linux/pwm.h> /* - * 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. */ |