mm, page_alloc: set alloc_flags only once in slowpath
[linux/fpc-iii.git] / drivers / rtc / rtc-core.h
bloba098aea197fc72dad6b0e1819c2ab739cb7dd042
1 #ifdef CONFIG_RTC_INTF_DEV
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 extern void rtc_dev_add_device(struct rtc_device *rtc);
7 extern void rtc_dev_del_device(struct rtc_device *rtc);
9 #else
11 static inline void rtc_dev_init(void)
15 static inline void rtc_dev_exit(void)
19 static inline void rtc_dev_prepare(struct rtc_device *rtc)
23 static inline void rtc_dev_add_device(struct rtc_device *rtc)
27 static inline void rtc_dev_del_device(struct rtc_device *rtc)
31 #endif
33 #ifdef CONFIG_RTC_INTF_PROC
35 extern void rtc_proc_add_device(struct rtc_device *rtc);
36 extern void rtc_proc_del_device(struct rtc_device *rtc);
38 #else
40 static inline void rtc_proc_add_device(struct rtc_device *rtc)
44 static inline void rtc_proc_del_device(struct rtc_device *rtc)
48 #endif
50 #ifdef CONFIG_RTC_INTF_SYSFS
51 const struct attribute_group **rtc_get_dev_attribute_groups(void);
52 #else
53 static inline const struct attribute_group **rtc_get_dev_attribute_groups(void)
55 return NULL;
57 #endif