diff options
Diffstat (limited to 'include/clocksource')
-rw-r--r-- | include/clocksource/samsung_pwm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clocksource/samsung_pwm.h b/include/clocksource/samsung_pwm.h index 5c449c8199e9..0c7d48b8b396 100644 --- a/include/clocksource/samsung_pwm.h +++ b/include/clocksource/samsung_pwm.h | |||
@@ -20,7 +20,14 @@ | |||
20 | 20 | ||
21 | #define SAMSUNG_PWM_NUM 5 | 21 | #define SAMSUNG_PWM_NUM 5 |
22 | 22 | ||
23 | /* | ||
24 | * Following declaration must be in an ifdef due to this symbol being static | ||
25 | * in pwm-samsung driver if the clocksource driver is not compiled in and the | ||
26 | * spinlock is not shared between both drivers. | ||
27 | */ | ||
28 | #ifdef CONFIG_CLKSRC_SAMSUNG_PWM | ||
23 | extern spinlock_t samsung_pwm_lock; | 29 | extern spinlock_t samsung_pwm_lock; |
30 | #endif | ||
24 | 31 | ||
25 | struct samsung_pwm_variant { | 32 | struct samsung_pwm_variant { |
26 | u8 bits; | 33 | u8 bits; |