]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-twl.c: fix: rtcX/wakealarm attribute isn't created
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 31 Jul 2013 20:53:41 +0000 (13:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Jul 2013 21:41:03 +0000 (14:41 -0700)
commitef2d09e664a09d0681b6f1e2f3e65af8a94e05d9
tree93403762eae4dc098c81fa1ea35fbba692577988
parent559502fb5188d96c9a0e0d962fcf74a197a478ec
drivers/rtc/rtc-twl.c: fix: rtcX/wakealarm attribute isn't created

The device_init_wakeup() should be called before rtc_device_register().
Otherwise, sysfs "sys/class/rtc/rtcX/wakealarm" attribute will not be seen
from User space.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-twl.c