pwm: Add new pwm-samsung driver
[sfrench/cifs-2.6.git] / include / clocksource / samsung_pwm.h
index 5c449c8199e9dcb7d867101a48ba72017e2d69bd..0c7d48b8b396c4d06fc850b1457e6f1d75bb6c29 100644 (file)
 
 #define SAMSUNG_PWM_NUM                5
 
+/*
+ * Following declaration must be in an ifdef due to this symbol being static
+ * in pwm-samsung driver if the clocksource driver is not compiled in and the
+ * spinlock is not shared between both drivers.
+ */
+#ifdef CONFIG_CLKSRC_SAMSUNG_PWM
 extern spinlock_t samsung_pwm_lock;
+#endif
 
 struct samsung_pwm_variant {
        u8 bits;