summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-core.h
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-05-08 09:33:27 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 20:15:18 +0200
commit5726fb2012f0d96153113ddb7f988a0daea587ce (patch)
tree27f31cfcc330cc3bc46dcc5297f85080f6f04ab7 /drivers/rtc/rtc-core.h
parentutimensat implementation (diff)
downloadlinux-5726fb2012f0d96153113ddb7f988a0daea587ce.tar.xz
linux-5726fb2012f0d96153113ddb7f988a0daea587ce.zip
rtc: remove /sys/class/rtc-dev/*
This simplifies the /dev support by removing a superfluous class_device (the /sys/class/rtc-dev stuff) and the class_interface that hooks it into the rtc core. Accordingly, if it's configured then /dev support is now part of the RTC core, and is never a separate module. It's another step towards being able to remove "struct class_device". [bunk@stusta.de: drivers/rtc/rtc-dev.c should #include "rtc-core.h"] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Acked-By: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-core.h')
-rw-r--r--drivers/rtc/rtc-core.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-core.h b/drivers/rtc/rtc-core.h
new file mode 100644
index 000000000000..c3c495ed1869
--- /dev/null
+++ b/drivers/rtc/rtc-core.h
@@ -0,0 +1,15 @@
+#ifdef CONFIG_RTC_INTF_DEV
+
+extern void __init rtc_dev_init(void);
+extern void __exit rtc_dev_exit(void);
+extern void rtc_dev_add_device(struct rtc_device *rtc);
+extern void rtc_dev_del_device(struct rtc_device *rtc);
+
+#else
+
+#define rtc_dev_init() do{}while(0)
+#define rtc_dev_exit() do{}while(0)
+#define rtc_dev_add_device(r) do{}while(0)
+#define rtc_dev_del_device(r) do{}while(0)
+
+#endif