rtc: add rtc_shutdown api to service pending work
authorBibek Basu <bbasu@nvidia.com>
Tue, 27 Jan 2015 11:40:15 +0000 (16:40 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 30 Jan 2015 05:47:30 +0000 (21:47 -0800)
commit097e6ff87a8450a0040091d7a69e9894611df6e6
treebdce4af6865af47244e182016ef4dcd02efb8c9a
parente0de594224b867533b58b2106a98448a6f36df91
rtc: add rtc_shutdown api to service pending work

During shutdown/reboot process, its better to
finish any pending irqwork so that the work is
not scheduled after devices like i2c are shutdown.
This patch provides hook to be called from rtc driver after disabling
rtc irq. Also any further request to access rtc_class_ops will
be prohibited.

Bug 200072946

Change-Id: I8eb20e5214a31fbc8a280ccfff8e190a5fabbb96
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/677750
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/rtc/class.c
drivers/rtc/interface.c
include/linux/rtc.h