summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-01-30 16:03:21 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:58:54 -0700
commit0b1722afc07eca99137486008c6de7d61e550c95 (patch)
tree8fd04895f2adad5fa39b1f3397ab22d3dbd1f16f /drivers/watchdog
parent37024fc3a86a06c02e6fae4712eebec8bae514c7 (diff)
watchdog: max77660: initialize driver early
Initialize watchdog time early so that it can handle the watchdog timer expire effectively. Bug 1225350 Change-Id: I7338863639bbc3c634a891ff418b3c486410779e Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/195510 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/max77660_sys_wdt.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/watchdog/max77660_sys_wdt.c b/drivers/watchdog/max77660_sys_wdt.c
index de0701b3fc95..88830cb03864 100644
--- a/drivers/watchdog/max77660_sys_wdt.c
+++ b/drivers/watchdog/max77660_sys_wdt.c
@@ -272,7 +272,17 @@ static struct platform_driver max77660_sys_wdt_driver = {
.remove = __devexit_p(max77660_sys_wdt_remove),
};
-module_platform_driver(max77660_sys_wdt_driver);
+static int __init max77660_sys_wdt_init(void)
+{
+ return platform_driver_register(&max77660_sys_wdt_driver);
+}
+subsys_initcall(max77660_sys_wdt_init);
+
+static void __exit max77660_reg_exit(void)
+{
+ platform_driver_unregister(&max77660_sys_wdt_driver);
+}
+module_exit(max77660_reg_exit);
MODULE_ALIAS("platform:max77660-sys-wdt");
MODULE_DESCRIPTION("Maxim Max77660 system watchdog timer driver");