blob: 5f9df7430a22728a7a1ce7941ef9f5898c476b70 [file] [log] [blame]
David Brownell5726fb22007-05-08 00:33:27 -07001#ifdef CONFIG_RTC_INTF_DEV
2
3extern void __init rtc_dev_init(void);
4extern void __exit rtc_dev_exit(void);
David Brownellcb3a58d2007-05-08 00:33:46 -07005extern void rtc_dev_prepare(struct rtc_device *rtc);
David Brownell5726fb22007-05-08 00:33:27 -07006extern void rtc_dev_add_device(struct rtc_device *rtc);
7extern void rtc_dev_del_device(struct rtc_device *rtc);
8
9#else
10
David Brownell61a7c362007-05-08 00:33:45 -070011static inline void rtc_dev_init(void)
12{
13}
14
15static inline void rtc_dev_exit(void)
16{
17}
18
David Brownellcb3a58d2007-05-08 00:33:46 -070019static inline void rtc_dev_prepare(struct rtc_device *rtc)
20{
21}
22
David Brownell61a7c362007-05-08 00:33:45 -070023static inline void rtc_dev_add_device(struct rtc_device *rtc)
24{
25}
26
27static inline void rtc_dev_del_device(struct rtc_device *rtc)
28{
29}
David Brownell5726fb22007-05-08 00:33:27 -070030
31#endif
David Brownell446ecbd2007-05-08 00:33:33 -070032
David Brownell7d9f99e2007-05-08 00:33:38 -070033#ifdef CONFIG_RTC_INTF_PROC
34
David Brownell61a7c362007-05-08 00:33:45 -070035extern void rtc_proc_add_device(struct rtc_device *rtc);
36extern void rtc_proc_del_device(struct rtc_device *rtc);
David Brownell7d9f99e2007-05-08 00:33:38 -070037
38#else
39
David Brownell61a7c362007-05-08 00:33:45 -070040static inline void rtc_proc_add_device(struct rtc_device *rtc)
41{
42}
43
44static inline void rtc_proc_del_device(struct rtc_device *rtc)
45{
46}
David Brownell7d9f99e2007-05-08 00:33:38 -070047
48#endif
49
David Brownell446ecbd2007-05-08 00:33:33 -070050#ifdef CONFIG_RTC_INTF_SYSFS
51
52extern void __init rtc_sysfs_init(struct class *);
53extern void rtc_sysfs_add_device(struct rtc_device *rtc);
54extern void rtc_sysfs_del_device(struct rtc_device *rtc);
55
56#else
57
David Brownell61a7c362007-05-08 00:33:45 -070058static inline void rtc_sysfs_init(struct class *rtc)
59{
60}
61
62static inline void rtc_sysfs_add_device(struct rtc_device *rtc)
63{
64}
65
66static inline void rtc_sysfs_del_device(struct rtc_device *rtc)
67{
68}
David Brownell446ecbd2007-05-08 00:33:33 -070069
70#endif