rtc: pm8xxx: move device_init_wakeup() before rtc_register
authorJosh Cartwright <[email protected]>
Thu, 3 Apr 2014 21:50:14 +0000 (14:50 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:21:23 +0000 (16:21 -0700)
commitfda9909ddaab13fb7b35b94f204623c1f9571fc7
tree17a2be60c3cdf8214348e451c96ddfb0211a91d8
parent5a418558cdae4fd0699b7b6a960f03a8bb38a338
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 <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-pm8xxx.c