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 | |
| 10 | #define rtc_dev_init() do{}while(0) |
| 11 | #define rtc_dev_exit() do{}while(0) |
| 12 | #define rtc_dev_add_device(r) do{}while(0) |
| 13 | #define rtc_dev_del_device(r) do{}while(0) |
| 14 | |
| 15 | #endif |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 16 | |
David Brownell | 7d9f99e | 2007-05-08 00:33:38 -0700 | [diff] [blame^] | 17 | #ifdef CONFIG_RTC_INTF_PROC |
| 18 | |
| 19 | void rtc_proc_add_device(struct rtc_device *rtc); |
| 20 | void rtc_proc_del_device(struct rtc_device *rtc); |
| 21 | |
| 22 | #else |
| 23 | |
| 24 | #define rtc_proc_add_device(r) do{}while(0) |
| 25 | #define rtc_proc_del_device(r) do{}while(0) |
| 26 | |
| 27 | #endif |
| 28 | |
David Brownell | 446ecbd | 2007-05-08 00:33:33 -0700 | [diff] [blame] | 29 | #ifdef CONFIG_RTC_INTF_SYSFS |
| 30 | |
| 31 | extern void __init rtc_sysfs_init(struct class *); |
| 32 | extern void rtc_sysfs_add_device(struct rtc_device *rtc); |
| 33 | extern void rtc_sysfs_del_device(struct rtc_device *rtc); |
| 34 | |
| 35 | #else |
| 36 | |
| 37 | #define rtc_sysfs_init(c) do{}while(0) |
| 38 | #define rtc_sysfs_add_device(r) do{}while(0) |
| 39 | #define rtc_sysfs_del_device(r) do{}while(0) |
| 40 | |
| 41 | #endif |