rtc: mt6397: enable wakeup before registering rtc device
authorWei-Ning Huang <wnhuang@chromium.org>
Thu, 2 Jul 2015 08:36:56 +0000 (16:36 +0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 17 Jul 2015 22:42:15 +0000 (00:42 +0200)
commitbaeca4495f53bd0c51c24e5467ef1a7ba5e17f6d
tree6ec8443dd8f838d6111b877102b926761ea069f6
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
rtc: mt6397: enable wakeup before registering rtc device

rtc_sysfs_add_device checks if device can wakeup before creating the
wakealarm file in sysfs. Thus the driver must set wakeup capability
before registering the rtc device.

Signed-off-by: Wei-Ning Huang <wnhuang@google.com>
Acked-by: Eddie Huang <eddie.huang@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-mt6397.c