Root/
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_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); |
8 | |
9 | #else |
10 | |
11 | static inline void rtc_dev_init(void) |
12 | { |
13 | } |
14 | |
15 | static inline void rtc_dev_exit(void) |
16 | { |
17 | } |
18 | |
19 | static inline void rtc_dev_prepare(struct rtc_device *rtc) |
20 | { |
21 | } |
22 | |
23 | static inline void rtc_dev_add_device(struct rtc_device *rtc) |
24 | { |
25 | } |
26 | |
27 | static inline void rtc_dev_del_device(struct rtc_device *rtc) |
28 | { |
29 | } |
30 | |
31 | #endif |
32 | |
33 | #ifdef CONFIG_RTC_INTF_PROC |
34 | |
35 | extern void rtc_proc_add_device(struct rtc_device *rtc); |
36 | extern void rtc_proc_del_device(struct rtc_device *rtc); |
37 | |
38 | #else |
39 | |
40 | static inline void rtc_proc_add_device(struct rtc_device *rtc) |
41 | { |
42 | } |
43 | |
44 | static inline void rtc_proc_del_device(struct rtc_device *rtc) |
45 | { |
46 | } |
47 | |
48 | #endif |
49 | |
50 | #ifdef CONFIG_RTC_INTF_SYSFS |
51 | |
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); |
55 | |
56 | #else |
57 | |
58 | static inline void rtc_sysfs_init(struct class *rtc) |
59 | { |
60 | } |
61 | |
62 | static inline void rtc_sysfs_add_device(struct rtc_device *rtc) |
63 | { |
64 | } |
65 | |
66 | static inline void rtc_sysfs_del_device(struct rtc_device *rtc) |
67 | { |
68 | } |
69 | |
70 | #endif |
71 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9