1 #ifdef CONFIG_RTC_INTF_DEV 2 3 extern void __init rtc_dev_init(void); 4 extern void __exit rtc_dev_exit(void); 5 extern void rtc_dev_prepare(struct rtc_device *rtc); 6 7 #else 8 9 static inline void rtc_dev_init(void) 10 { 11 } 12 13 static inline void rtc_dev_exit(void) 14 { 15 } 16 17 static inline void rtc_dev_prepare(struct rtc_device *rtc) 18 { 19 } 20 21 #endif 22 23 #ifdef CONFIG_RTC_INTF_PROC 24 25 extern void rtc_proc_add_device(struct rtc_device *rtc); 26 extern void rtc_proc_del_device(struct rtc_device *rtc); 27 28 #else 29 30 static inline void rtc_proc_add_device(struct rtc_device *rtc) 31 { 32 } 33 34 static inline void rtc_proc_del_device(struct rtc_device *rtc) 35 { 36 } 37 38 #endif 39 40 #ifdef CONFIG_RTC_INTF_SYSFS 41 const struct attribute_group **rtc_get_dev_attribute_groups(void); 42 #else 43 static inline const struct attribute_group **rtc_get_dev_attribute_groups(void) 44 { 45 return NULL; 46 } 47 #endif 48