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
);
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
)
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
);
40 static inline void rtc_proc_add_device(struct rtc_device
*rtc
)
44 static inline void rtc_proc_del_device(struct rtc_device
*rtc
)
50 #ifdef CONFIG_RTC_INTF_SYSFS
52 extern void __init
rtc_sysfs_init(struct class *);
53 extern void rtc_sysfs_add_device(struct rtc_device
*rtc
);
54 extern void rtc_sysfs_del_device(struct rtc_device
*rtc
);
58 static inline void rtc_sysfs_init(struct class *rtc
)
62 static inline void rtc_sysfs_add_device(struct rtc_device
*rtc
)
66 static inline void rtc_sysfs_del_device(struct rtc_device
*rtc
)