]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: update to class device removal patches
authorDavid Brownell <david-b@pacbell.net>
Tue, 8 May 2007 07:33:46 +0000 (00:33 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:18 +0000 (11:15 -0700)
commitc2a45aff003f6f8bc8e72215e426a5bf3972bd1c
treea14e0afa950d7b6dd6b6bbd536ef0b128f5078e6
parent0f2de7c018d916cbd77ba1cdef39a98068aee8f2
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>
drivers/rtc/class.c
drivers/rtc/rtc-core.h
drivers/rtc/rtc-dev.c