blob: 4675a9fd5b14feb38fe62efa005c311bbcbc6532 [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);
5extern void rtc_dev_add_device(struct rtc_device *rtc);
6extern 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 Brownell446ecbd2007-05-08 00:33:33 -070016
David Brownell7d9f99e2007-05-08 00:33:38 -070017#ifdef CONFIG_RTC_INTF_PROC
18
19void rtc_proc_add_device(struct rtc_device *rtc);
20void 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 Brownell446ecbd2007-05-08 00:33:33 -070029#ifdef CONFIG_RTC_INTF_SYSFS
30
31extern void __init rtc_sysfs_init(struct class *);
32extern void rtc_sysfs_add_device(struct rtc_device *rtc);
33extern 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