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); 55726fb20SDavid Brownell extern void rtc_dev_add_device(struct rtc_device *rtc); 65726fb20SDavid Brownell extern void rtc_dev_del_device(struct rtc_device *rtc); 75726fb20SDavid Brownell 85726fb20SDavid Brownell #else 95726fb20SDavid Brownell 105726fb20SDavid Brownell #define rtc_dev_init() do{}while(0) 115726fb20SDavid Brownell #define rtc_dev_exit() do{}while(0) 125726fb20SDavid Brownell #define rtc_dev_add_device(r) do{}while(0) 135726fb20SDavid Brownell #define rtc_dev_del_device(r) do{}while(0) 145726fb20SDavid Brownell 155726fb20SDavid Brownell #endif 16446ecbd9SDavid Brownell 17*7d9f99ecSDavid Brownell #ifdef CONFIG_RTC_INTF_PROC 18*7d9f99ecSDavid Brownell 19*7d9f99ecSDavid Brownell void rtc_proc_add_device(struct rtc_device *rtc); 20*7d9f99ecSDavid Brownell void rtc_proc_del_device(struct rtc_device *rtc); 21*7d9f99ecSDavid Brownell 22*7d9f99ecSDavid Brownell #else 23*7d9f99ecSDavid Brownell 24*7d9f99ecSDavid Brownell #define rtc_proc_add_device(r) do{}while(0) 25*7d9f99ecSDavid Brownell #define rtc_proc_del_device(r) do{}while(0) 26*7d9f99ecSDavid Brownell 27*7d9f99ecSDavid Brownell #endif 28*7d9f99ecSDavid Brownell 29446ecbd9SDavid Brownell #ifdef CONFIG_RTC_INTF_SYSFS 30446ecbd9SDavid Brownell 31446ecbd9SDavid Brownell extern void __init rtc_sysfs_init(struct class *); 32446ecbd9SDavid Brownell extern void rtc_sysfs_add_device(struct rtc_device *rtc); 33446ecbd9SDavid Brownell extern void rtc_sysfs_del_device(struct rtc_device *rtc); 34446ecbd9SDavid Brownell 35446ecbd9SDavid Brownell #else 36446ecbd9SDavid Brownell 37446ecbd9SDavid Brownell #define rtc_sysfs_init(c) do{}while(0) 38446ecbd9SDavid Brownell #define rtc_sysfs_add_device(r) do{}while(0) 39446ecbd9SDavid Brownell #define rtc_sysfs_del_device(r) do{}while(0) 40446ecbd9SDavid Brownell 41446ecbd9SDavid Brownell #endif 42