15726fb20SDavid Brownell #ifdef CONFIG_RTC_INTF_DEV 25726fb20SDavid Brownell 35726fb20SDavid Brownell extern void __init rtc_dev_init(void); 45726fb20SDavid Brownell extern void __exit rtc_dev_exit(void); 5*cb3a58d2SDavid Brownell extern void rtc_dev_prepare(struct rtc_device *rtc); 65726fb20SDavid Brownell extern void rtc_dev_add_device(struct rtc_device *rtc); 75726fb20SDavid Brownell extern void rtc_dev_del_device(struct rtc_device *rtc); 85726fb20SDavid Brownell 95726fb20SDavid Brownell #else 105726fb20SDavid Brownell 1161a7c36aSDavid Brownell static inline void rtc_dev_init(void) 1261a7c36aSDavid Brownell { 1361a7c36aSDavid Brownell } 1461a7c36aSDavid Brownell 1561a7c36aSDavid Brownell static inline void rtc_dev_exit(void) 1661a7c36aSDavid Brownell { 1761a7c36aSDavid Brownell } 1861a7c36aSDavid Brownell 19*cb3a58d2SDavid Brownell static inline void rtc_dev_prepare(struct rtc_device *rtc) 20*cb3a58d2SDavid Brownell { 21*cb3a58d2SDavid Brownell } 22*cb3a58d2SDavid Brownell 2361a7c36aSDavid Brownell static inline void rtc_dev_add_device(struct rtc_device *rtc) 2461a7c36aSDavid Brownell { 2561a7c36aSDavid Brownell } 2661a7c36aSDavid Brownell 2761a7c36aSDavid Brownell static inline void rtc_dev_del_device(struct rtc_device *rtc) 2861a7c36aSDavid Brownell { 2961a7c36aSDavid Brownell } 305726fb20SDavid Brownell 315726fb20SDavid Brownell #endif 32446ecbd9SDavid Brownell 337d9f99ecSDavid Brownell #ifdef CONFIG_RTC_INTF_PROC 347d9f99ecSDavid Brownell 3561a7c36aSDavid Brownell extern void rtc_proc_add_device(struct rtc_device *rtc); 3661a7c36aSDavid Brownell extern void rtc_proc_del_device(struct rtc_device *rtc); 377d9f99ecSDavid Brownell 387d9f99ecSDavid Brownell #else 397d9f99ecSDavid Brownell 4061a7c36aSDavid Brownell static inline void rtc_proc_add_device(struct rtc_device *rtc) 4161a7c36aSDavid Brownell { 4261a7c36aSDavid Brownell } 4361a7c36aSDavid Brownell 4461a7c36aSDavid Brownell static inline void rtc_proc_del_device(struct rtc_device *rtc) 4561a7c36aSDavid Brownell { 4661a7c36aSDavid Brownell } 477d9f99ecSDavid Brownell 487d9f99ecSDavid Brownell #endif 497d9f99ecSDavid Brownell 50446ecbd9SDavid Brownell #ifdef CONFIG_RTC_INTF_SYSFS 51446ecbd9SDavid Brownell 52446ecbd9SDavid Brownell extern void __init rtc_sysfs_init(struct class *); 53446ecbd9SDavid Brownell extern void rtc_sysfs_add_device(struct rtc_device *rtc); 54446ecbd9SDavid Brownell extern void rtc_sysfs_del_device(struct rtc_device *rtc); 55446ecbd9SDavid Brownell 56446ecbd9SDavid Brownell #else 57446ecbd9SDavid Brownell 5861a7c36aSDavid Brownell static inline void rtc_sysfs_init(struct class *rtc) 5961a7c36aSDavid Brownell { 6061a7c36aSDavid Brownell } 6161a7c36aSDavid Brownell 6261a7c36aSDavid Brownell static inline void rtc_sysfs_add_device(struct rtc_device *rtc) 6361a7c36aSDavid Brownell { 6461a7c36aSDavid Brownell } 6561a7c36aSDavid Brownell 6661a7c36aSDavid Brownell static inline void rtc_sysfs_del_device(struct rtc_device *rtc) 6761a7c36aSDavid Brownell { 6861a7c36aSDavid Brownell } 69446ecbd9SDavid Brownell 70446ecbd9SDavid Brownell #endif 71