David Brownell | 5726fb2 | 2007-05-08 00:33:27 -0700 | [diff] [blame] | 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_add_device(struct rtc_device *rtc); |
| 6 | extern void rtc_dev_del_device(struct rtc_device *rtc); |
| 7 | |
| 8 | #else |
| 9 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame^] | 10 | static inline void rtc_dev_init(void) |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | static inline void rtc_dev_exit(void) |
| 15 | { |
| 16 | } |
| 17 | |
| 18 | static inline void rtc_dev_add_device(struct rtc_device *rtc) |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | static inline void rtc_dev_del_device(struct rtc_device *rtc) |
| 23 | { |
| 24 | } |
David Brownell | 5726fb2 | 2007-05-08 00:33:27 -0700 | [diff] [blame] | 25 | |
| 26 | #endif |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 27 | |
David Brownell | 7d9f99e | 2007-05-08 00:33:38 -0700 | [diff] [blame] | 28 | #ifdef CONFIG_RTC_INTF_PROC |
| 29 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame^] | 30 | extern void rtc_proc_add_device(struct rtc_device *rtc); |
| 31 | extern void rtc_proc_del_device(struct rtc_device *rtc); |
David Brownell | 7d9f99e | 2007-05-08 00:33:38 -0700 | [diff] [blame] | 32 | |
| 33 | #else |
| 34 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame^] | 35 | static inline void rtc_proc_add_device(struct rtc_device *rtc) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | static inline void rtc_proc_del_device(struct rtc_device *rtc) |
| 40 | { |
| 41 | } |
David Brownell | 7d9f99e | 2007-05-08 00:33:38 -0700 | [diff] [blame] | 42 | |
| 43 | #endif |
| 44 | |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 45 | #ifdef CONFIG_RTC_INTF_SYSFS |
| 46 | |
| 47 | extern void __init rtc_sysfs_init(struct class *); |
| 48 | extern void rtc_sysfs_add_device(struct rtc_device *rtc); |
| 49 | extern void rtc_sysfs_del_device(struct rtc_device *rtc); |
| 50 | |
| 51 | #else |
| 52 | |
David Brownell | 61a7c36 | 2007-05-08 00:33:45 -0700 | [diff] [blame^] | 53 | static inline void rtc_sysfs_init(struct class *rtc) |
| 54 | { |
| 55 | } |
| 56 | |
| 57 | static inline void rtc_sysfs_add_device(struct rtc_device *rtc) |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | static inline void rtc_sysfs_del_device(struct rtc_device *rtc) |
| 62 | { |
| 63 | } |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 64 | |
| 65 | #endif |