diff options
author | David Brownell <david-b@pacbell.net> | 2007-05-08 03:33:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:18 -0400 |
commit | cd9662094edf4173e87f0452e57e4eacc228f8ff (patch) | |
tree | 819d487aad05c7e61531bd25e3e7a0d4c08c6616 /include/linux | |
parent | 7d9f99eccc8f94ace31030a2a7ff73cf5f8c12a0 (diff) |
rtc: remove rest of class_device
Finish converting the RTC framework so it no longer uses class_device.
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/rtc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 73ccd8fcc0c7..07ecd4ca8ca7 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h | |||
@@ -136,7 +136,7 @@ struct rtc_task; | |||
136 | 136 | ||
137 | struct rtc_device | 137 | struct rtc_device |
138 | { | 138 | { |
139 | struct class_device class_dev; | 139 | struct device dev; |
140 | struct module *owner; | 140 | struct module *owner; |
141 | 141 | ||
142 | int id; | 142 | int id; |
@@ -168,7 +168,7 @@ struct rtc_device | |||
168 | unsigned int uie_timer_active:1; | 168 | unsigned int uie_timer_active:1; |
169 | #endif | 169 | #endif |
170 | }; | 170 | }; |
171 | #define to_rtc_device(d) container_of(d, struct rtc_device, class_dev) | 171 | #define to_rtc_device(d) container_of(d, struct rtc_device, dev) |
172 | 172 | ||
173 | extern struct rtc_device *rtc_device_register(const char *name, | 173 | extern struct rtc_device *rtc_device_register(const char *name, |
174 | struct device *dev, | 174 | struct device *dev, |