aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-core.h
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2007-05-08 03:33:46 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:18 -0400
commitcb3a58d2acc042f62cde932add8e1f9ed508368d (patch)
treea14e0afa950d7b6dd6b6bbd536ef0b128f5078e6 /drivers/rtc/rtc-core.h
parent61a7c36acb3da406d64c0da6288eab1c414a65ea (diff)
rtc: update to class device removal patches
Fix a goof in the revised classdev support for RTCs: make sure the /dev node info is ready before the device is registered, not after. Otherwise the /sys/class/rtc/rtcN/dev attribute won't be created and then udev won't have the information it needs to create the /dev/rtcN node. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Alessandro Zummo <a.zummo@towertech.it> 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-core.h b/drivers/rtc/rtc-core.h
index d81a278fcde..5f9df7430a2 100644
--- a/drivers/rtc/rtc-core.h
+++ b/drivers/rtc/rtc-core.h
@@ -2,6 +2,7 @@
2 2
3extern void __init rtc_dev_init(void); 3extern void __init rtc_dev_init(void);
4extern void __exit rtc_dev_exit(void); 4extern void __exit rtc_dev_exit(void);
5extern void rtc_dev_prepare(struct rtc_device *rtc);
5extern void rtc_dev_add_device(struct rtc_device *rtc); 6extern void rtc_dev_add_device(struct rtc_device *rtc);
6extern void rtc_dev_del_device(struct rtc_device *rtc); 7extern void rtc_dev_del_device(struct rtc_device *rtc);
7 8
@@ -15,6 +16,10 @@ static inline void rtc_dev_exit(void)
15{ 16{
16} 17}
17 18
19static inline void rtc_dev_prepare(struct rtc_device *rtc)
20{
21}
22
18static inline void rtc_dev_add_device(struct rtc_device *rtc) 23static inline void rtc_dev_add_device(struct rtc_device *rtc)
19{ 24{
20} 25}