mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
7d9f99eccc
commit
cd9662094e
9 changed files with 74 additions and 66 deletions
|
@ -136,7 +136,7 @@ struct rtc_task;
|
|||
|
||||
struct rtc_device
|
||||
{
|
||||
struct class_device class_dev;
|
||||
struct device dev;
|
||||
struct module *owner;
|
||||
|
||||
int id;
|
||||
|
@ -168,7 +168,7 @@ struct rtc_device
|
|||
unsigned int uie_timer_active:1;
|
||||
#endif
|
||||
};
|
||||
#define to_rtc_device(d) container_of(d, struct rtc_device, class_dev)
|
||||
#define to_rtc_device(d) container_of(d, struct rtc_device, dev)
|
||||
|
||||
extern struct rtc_device *rtc_device_register(const char *name,
|
||||
struct device *dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue