]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: pm8xxx: move device_init_wakeup() before rtc_register
authorJosh Cartwright <joshc@codeaurora.org>
Thu, 3 Apr 2014 21:50:14 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:23 +0000 (16:21 -0700)
commit7f3667af5868183ba157113db36b223bef4d3c70
tree17a2be60c3cdf8214348e451c96ddfb0211a91d8
parent94a04f60db0e7789323d1c45ce2d4bba6f770979
rtc: pm8xxx: move device_init_wakeup() before rtc_register

Setup wakeup capability before rtc_register to ensure the rtc class core
properly sets up our 'wakealarm' sysfs attribute.

Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
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/rtc-pm8xxx.c